At least on Windows it’s an application (or the program) that usually loads fonts as a resource and must release them when it closes. So that’s the first place I looked, but the C API has like 3 functions that belong to the application because it’s not yet “live certified.”
Anyway, it makes sense that the model database would have a collection of fonts (or fontface names) that would need to be loaded to support entities using text. So I looked there.
I know how to load font resources using the Windows SDK. (I’ve done it in the past to tweak SketchUp’s Ruby Console to use a different font.) But I’m not sure how one would cast them to a
We used to do this prior to v2014 when
layer#color= was implemented to add a set of specially colored layers.
There is also the trick of adding a component file that has nothing but cpoints on preset layers (named and colored a certain way.) The component trick was also used prior to the dimension classes being exposed to the API. (A unit length dimension component was inserted then positioned and scaled. Quite the hack.)
So we’ve had to use such “hacks” before.