Re: How to check if a font has a given character?
- From: Eduardo M KALINOWSKI <ekalin bol com br>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to check if a font has a given character?
- Date: Thu, 15 Sep 2005 17:06:08 -0300
Christian Neumair wrote:
Am Donnerstag, den 15.09.2005, 16:26 -0300 schrieb Eduardo M KALINOWSKI:
I want to check if the font I'm using (in a GtkTextView, if that
matters) contains some characters (specifically, the "line-drawing"
characters). How can I do that with Pango? The function
pango_fc_font_has_char() apparently does exactly what I want, however I
couldn't discover how to get a PangoFcFont *.
You should take a look at PangoCoverage, which can be requested using
pango_font_get_coverage ().
Right. Looking at it, the function pango_coverage_get() seems promising.
However, I'm unsure about the index_ argument. Would that be index of
that I want to check, according the the Unicode tables?
--
A wife lasts only for the length of the marriage, but an ex-wife is there
*for the rest of your life*.
-- Jim Samuels
Eduardo M KALINOWSKI
ekalin bol com br
http://move.to/hpkb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]