cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The 2025 Technology Preview Program is now live. Join today!

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Font Index numbers

poco2013
Mentor
Wondering if there is a listing of the available Fonts in Archicad and their index number?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
I think you'll find the available fonts match those installed on your machine, so it will vary from on installation to another.

Consequently, I also suspect that the font indices won't necessarily be consistent either.
Ralph Wessel BArch
Central Innovation

View solution in original post

3 REPLIES 3
Solution
I think you'll find the available fonts match those installed on your machine, so it will vary from on installation to another.

Consequently, I also suspect that the font indices won't necessarily be consistent either.
Ralph Wessel BArch
Central Innovation
poco2013
Mentor
Bummer!!

Setting the font for text output requires a Font index number not a Font name.

So I guess i'll have to use the getattribute function to get the index first? - seems like a roundabout way?
Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27
It's not so bad - you can use ACAPI_Attribute_Search to look up the font by name, which gives you just the attribute header (including the index) without loading the whole attribute.
Ralph Wessel BArch
Central Innovation