q962
(提及)
1
I called pango_win32_font_map_add_font_file
before using the font
The results of pango_font_map_list_families
do include the added fonts
It will work properly only when the font is installed on the system
I only know that the font rendering was normal on May 24, 2022
In the past, font files were added using “AddFontResourceEx”
Now, the same program does not work properly.
Reports the following error:
Pango-WARNING **: 21:53:10.367: couldn't load font "Symbols Nerd Font Mono Not-Rotated 12px", falling back to "Sans Not-Rotated 12px", expect ugly output.
Hi,
Which exact Pango version are you using?
Is it the one from msys2? or something self-compiled?
The msys2 version uses a patch that sometimes breaks some custom font loading.
q962
(提及)
3
This patch is for font rendering errors. It does not affect how fonts are found.
I have disabled this patch.
q962
(提及)
4
After further research, the patch does cause the error.

1 Like
system
(system)
Closed
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.