THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/01/2012 at 07:17, xxxxxxxx wrote:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;
I'm fiddling around with this for quite some time now, but I somehow don't get it.
I'd like to get the path of the font (or better the path and the name of the actual font file) a user selected in a "spline text" or "MoText" object. I think, I can correctly retrieve a custom data type FontData from the objects container, but from there on, I don't seem to get any further... I'm quite sure, there's a rather simple way of pulling this off, but I too blind to find it...
At first I thought, I had a solution for R13... as Matthias Bober descriped in "Topic: Fontchooser" thread a way to get the Fontname in R13.
Now I realize, the displayed font name won't help in order to find the actual font file (as filenames tend todiffer signifivantly (at least on Windows))...
And there's another point. If I use Matthias's way to get the font name from a MoText object, it delivers no name until the user has clicked once on the MoText font chooser. Shouldn't it deliver the default font name instead (as that's the font selected in the MoText)?
Thanks in advance,
On 26/01/2012 at 11:12, xxxxxxxx wrote:
Just wanted to say, that I've worked around this (basically by managing my own font table and matching the C4D font family name and style into this table). As it looks, there seems to be no easy C4D way of getting this info (maybe in a later version?).
For now this topic may be regarded as closed.