BindBC/bindbc-freetype

Problem with support for freetype 2.9 version

electricface opened this issue · 0 comments

On my computer, freetype may be version 2.9.
ii libfreetype6: amd64 2.9.1.2-1

Therefore, I don't have some functions from version 2.10.
During my testing, I found that FT_Library_SetLcdGeometry and FT_Get_Color_Glyph_Layer cannot be found, and after checking the documentation, I discovered that they were added in versions after 2.10.

I encountered this issue while testing dlangui.

./bin/helloworld
2024-03-20 18:09:59.702 I  Log level changed to Trace
2024-03-20 18:09:59.702 I  Logger is initialized
2024-03-20 18:09:59.702 V  bindbc-freetype: Loading FreeType library
2024-03-20 18:09:59.703 V  ftVer:badLibrary
2024-03-20 18:09:59.703 V  ftSupport:v2_6
2024-03-20 18:09:59.703 E  bindbc-freetype: cannot load freetype shared library: bindbc-freetype unable to find suitable library, v2_6 minimum required
object.Exception@../../src/dlangui/graphics/ftfonts.d(601): Cannot load freetype library
----------------
../../src/dlangui/graphics/ftfonts.d:601 dlangui.graphics.ftfonts.FreeTypeFontManager dlangui.graphics.ftfonts.FreeTypeFontManager.__ctor() [0x83a318]
../../src/dlangui/platforms/common/startup.d:236 initFontManager [0x7c6968]
../../src/dlangui/platforms/sdl/sdlapp.d:1644 int dlangui.platforms.sdl.sdlapp.sdlmain(immutable(char)[][]) [0x7141bb]
../../src/dlangui/platforms/sdl/sdlapp.d:1604 DLANGUImain [0x714193]
../../src/dlangui/platforms/common/platform.d:2130 _Dmain [0x6e9e93]
2024-03-20 18:09:59.726 D  Destroying font manager