Skip to content

Attempt to fix some Win32-related issues

Chun-wei Fan requested to merge win32-fixes into main

Hi,

The following attempts to fix the build and running issues on Windows:

  • Fix building pango-markup.c, where the second parameter to strchr() is supposed to be a char, not a string.
  • Make finding a matching PangoFontFace try harder when no font matches are found when a gravity is set in the PangoFontDescription, like what the CoreText backend does. Partially fixes issue #583 (closed).
  • Use the former rounding code on PangoFont's that do not support hinting. Should fix #578 (closed).
  • Fix building testmisc.c when PangoFT2 is not enabled during the build, which can be the case on at least Windows Visual Studio builds.

I need to find out how I could make GDI/Uniscribe layout East Asian text vertically, which is the other part of the fix to #583 (closed).

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports