Font size in GeClipMap
On 05/11/2017 at 23:57, xxxxxxxx wrote:
Cinema 4D Version:
I have been able to display some text in the viewport according to answers provided in this thread:
However, I haven't been able to change the font size. Searching through the forum did provide a single solution:
But I cannot get it to work, as calling SetFont or SetFontSize always fail.
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);
BaseContainer fontbc; if (!GeClipMap::GetDefaultFont(GE_FONT_DEFAULT_SYSTEM, &fontbc)) return FALSE; Bool ret = clipMap->SetFontSize(&fontbc, GE_FONT_SIZE_INTERNAL, 50.0);
On 06/11/2017 at 02:21, xxxxxxxx wrote:
On 06/11/2017 at 02:55, xxxxxxxx wrote:
I still couldn't get the SetFontSize to work.
But from the GeClipMap manual example I managed to get the (non-static) SetFont to work.