TrueType Fonts



  • 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.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/02/2004 at 15:42, xxxxxxxx wrote:

    As it says in the docs, anything else than the Postscript information in the container is private. You might be able to find other interesting stuff in there if you iterate through the elements (I haven't tried), but that would be unsupported.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/02/2004 at 23:03, xxxxxxxx wrote:

    So if i understood, there's no way by SDK to get information which TrueType font was used for a Osplinetext.
    It seems that I have to code my own object type which supports such a function.

    Thanks anyway


Log in to reply