Non-installed fonts with Pango

View: New views
3 Messages — Rating Filter:   Alert me  

Non-installed fonts with Pango

by Eddie Hillenbrand :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How do you use a font that is not available on the system to layout  
text with Pango? I basically want to load a font from a file.

I can do this with Cairo using FreeType routines, but there doesn't  
appear to be a Pango equivalent to  
cairo_ft_font_face_create_for_ft_face().

I have tried setting the font using cairo and not using  
pango_layout_set_font_description() when I create the layout, but that  
just displays text in the default serif font.

Thanks,

Eddie
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list@...
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: Non-installed fonts with Pango

by ogg.k.ogg.k@googlemail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> How do you use a font that is not available on the system to layout
> text with Pango? I basically want to load a font from a file.

It would be nice to be able to do it from a memory block too :D

(eg, font file transmitted by network stream)
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list@...
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: Non-installed fonts with Pango

by Wouter Bolsterlee-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009-06-16 klockan 20:17 skrev ogg.k.ogg.k@...:
> > How do you use a font that is not available on the system to layout
> > text with Pango? I basically want to load a font from a file.
>
> It would be nice to be able to do it from a memory block too :D
> (eg, font file transmitted by network stream)

You are probably interested in
http://bugzilla.gnome.org/show_bug.cgi?id=347237

    — Wouter


_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list@...
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

signature.asc (261 bytes) Download Attachment