pangowin32: Cursive default font doesn't work
I just noticed that when using Manim, which uses Pango internally that the default font Cursive
doesn't work. It works with fontconfig backend though
C:\Users\User> python
>>> from manim import Text
>>> Text('Hello',font='Cursive')
(process:3148): Pango-WARNING **: 21:40:15.497: couldn't load font "Cursive Not-
Rotated 10", falling back to "Sans Not-Rotated 10", expect ugly output.
Text('Hello')
C:\Users\User> set PANGOCAIRO_BACKEND=fc
C:\Users\User> set FONTCONFIG_PATH=C:\fonts
C:\Users\User> python
>>> from manim import Text
>>> Text('Hello',font='Cursive')
Text('Hello')
>>> quit()
The SVG it generated is attached svg.zip
win32.svg
is the one it generated in win32 backend and the other is in fc backend.
I think it is because of a typo here
https://gitlab.gnome.org/GNOME/pango/-/blob/master/pango/pangowin32-fontmap.c#L470 where it should be comic
instead of commic
. Let me try whether this fixes it.
Edited by Naveen M K