[Bug 347237] Making Pango use a given cairo_font_face_t
pango (bugzilla.gnome.org)
bugzilla at gnome.org
Thu May 8 18:49:58 UTC 2014
https://bugzilla.gnome.org/show_bug.cgi?id=347237
pango | general | unspecified
--- Comment #25 from Behdad Esfahbod <behdad at gnome.org> 2014-05-08 18:49:52 UTC ---
Some comments that may help others work around this bug:
==================
I have an idea of how to do this easily in Pango. Give it a try. The
main limitation is that it only works for actual files on the filesystem. But
you may be able to wire it up through ~/.gvfs filenames?
1. FcConfigCreate()
2. FcConfigAppFontAddFile()
3. pango_cairo_font_map_new_for_font_type()
4. Use that PangoFontMap to create your context, etc.
5. Every time you want to use Pango with that context, FcConfigSetCurrent the
above config. Then reset it back to whatever it was before.
This way, Pango will only see that single font.
Misc bugs that would help make this easier in the future:
https://bugs.freedesktop.org/show_bug.cgi?id=78450
https://bugs.freedesktop.org/show_bug.cgi?id=78452
https://bugs.freedesktop.org/show_bug.cgi?id=64766
https://bugzilla.gnome.org/show_bug.cgi?id=547671
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the fonts-bugs
mailing list