Forum > LazUtils

[LazFreeType] How to read information from a font file?

(1/2) > >>

It would be great to have an example on that, thanks

I guess that such code exists in fontconfig source.

But LCL-CustomDrawn uses non-native text in multiple operating systems where fontconfig does not exist (Windows, Mac OS X, Android). I was hoping that circular would know the answer.

Ok, so I will answer my own question. Guiliano Colla found out how to do this and he sent me a patch, and here it is:

I think that the most important part is:


Which is part of LazFreeType. But in general the entire routine there is a nice example of how to extract font information with LazFreeType

I didn't mean that you'll use fontconfig, but to see in source how it is extracted.


[0] Message Index

[#] Next page

Go to full version