On 05/11/2017 at 23:57, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
I have been able to display some text in the viewport according to answers provided in this thread:
https://plugincafe.maxon.net/topic/4169/3712_draw-text-to-viewport-like-measureconst
However, I haven't been able to change the font size. Searching through the forum did provide a single solution:
https://plugincafe.maxon.net/topic/8025/10428_size-of-the-character-of-geclipmap&KW=setfont&PID=40428#40428
But I cannot get it to work, as calling SetFont or SetFontSize always fail.
trial 1
Float gFontScale = 3;
BaseContainer fontDescription;
clipMap->GetDefaultFont(GE_FONT_DEFAULT_SYSTEM, &fontDescription);
Float fontSize;
clipMap->GetFontSize(&fontDescription, GE_FONT_SIZE_INTERNAL, &fontSize);
Bool ret = clipMap->SetFont(&fontDescription, fontSize * gFontScale);
trial 2
BaseContainer fontbc;
if (!GeClipMap::GetDefaultFont(GE_FONT_DEFAULT_SYSTEM, &fontbc)) return FALSE;
Bool ret = clipMap->SetFontSize(&fontbc, GE_FONT_SIZE_INTERNAL, 50.0);