THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/02/2004 at 00:54, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.207
Platform: Windows ;
Language(s) : C++ ;
---------
how can i get the information of a Osplinetext which TrueType font (incl. style) is used?
i already have the FontData and the belonging BaseContainer. (look at FontData in Osplinetext)
but with that i get only then a Filename if the used font is a postscript font. TrueType fonts won't return any information.
how do i get TrueType information, too?
that's the used code:
BaseContainer *bc = bo->GetDataInstance();
FontData *fd = (FontData* )bc->GetCustomDataType(PRIM_TEXT_FONT, FONTCHOOSER_DATA);
BaseContainer fcont = fd->GetFont();
Bool ps = fcont.GetBool(FONT_USE_POSTSCRIPT);
Filename fcfn = fcont.GetFilename(FONT_POSTSCRIPT_NAME);
in case of TrueType fonts fcfn will be NULL.