SDL Forum Index
SDL
Simple DirectMedia Layer Forums
Reply to topic
FreeType version number?
Rainer Deyke
Guest

Reply with quote
On 28.01.2017 19:55, rtrussell wrote:
Quote:
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 -

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: FreeType version number?
rtrussell


Joined: 10 Feb 2016
Posts: 88
Reply with quote
Rainer Deyke wrote:
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.
View user's profileSend private messageVisit poster's website
FreeType version number?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic