Close

Relief for ODA Team in Ukraine

Learn more
ODA PRC SDK
Set Font Parameters for Markups

Set Font Parameters for Markups

To set font attributes for markup entities, the OdPrMarkupSerializationHelper class should be used. It is assumed that you have access to the appropriate file structure through a pointer (newStructure).

  1. Create an instance of the OdPrcFontKeysSameFont class and set the font attributes you want:
    
              OdPrcFontKeysSameFont font;
              font.setFontName("Courier Std Medium");
              font.setCharSet(1073741824);
              font.fontKeys().resize(1);
              font.fontKeys()[0].font_size = 5;
              font.fontKeys()[0].attributes = 1;
            
  2. Add created fonts to the font array of the OdPrcMarkupSerializationHelper object:
    
              newStructure->fileStructureGlobals().markupSerializationHelper().fontKeysSameFont().push_back(font);
            

See Also

Work with Markup Tessellation
Create Markup Leaders
Font Handling
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.