Discussion:
FreeType version number?
(too old to reply)
rtrussell
2017-01-28 18:55:26 UTC
Permalink
How would I get, at run time, the version number of the FreeType library being used by SDL_TTF? The FT_Library_Version (https://www.freetype.org/freetype2/docs/reference/ft2-version.html) function needs the 'source library handle' but AFAIK that's not exposed by SDL_TTF. Or is it?

Richard.
Rainer Deyke
2017-02-05 13:23:08 UTC
Permalink
Post by rtrussell
How would I get, at run time, the version number of the FreeType
library being used by SDL_TTF? The FT_Library_Version
(https://www.freetype.org/freetype2/docs/reference/ft2-version.html)
function needs the 'source library handle' but AFAIK that's not
exposed by SDL_TTF. Or is it?
You might try calling FT_Init_FreeType to get your own FT_Library
instance, use it to call, then call FT_Library_Version followed by
FT_Done_FreeType.
--
Rainer Deyke - ***@eldwood.com
rtrussell
2017-02-05 14:40:09 UTC
Permalink
You might try calling FT_Init_FreeType to get your own FT_Library instance, use it to call, then call FT_Library_Version followed by
FT_Done_FreeType.
D'oh, I really should have thought of that! It works perfectly. Thanks.

Richard.

Continue reading on narkive:
Loading...