Re: [gtk-i18n-list] Rendering a custom glyph using pango
- From: suzuki toshiya <mpsuzuki hiroshima-u ac jp>
- To: Ferdinand Ramirez <ramirez ferdinand yahoo com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: [gtk-i18n-list] Rendering a custom glyph using pango
- Date: Tue, 14 Feb 2012 16:20:26 +0900
Yet I'm not in full understanding of your "a random code" term,
and what you want to do...
To understand how Pango selects a font, maybe playing with a demo
under pango-x.y.z/pango-view/ would be most informative, I think.
Also it is recommended to check pango-glyph.h for available APIs to
draw a serie of glyphs by "PangoGlyphString"-typed data.
But, if you want to insert a glyph without using Unicode string
(e.g. passing glyph index in the font, instead of the character
codepoint) in GTK+ application, trying to invoke pango directly
would not be good idea, maybe using some GDK functions like
gdk_draw_glyphs() would be safer method.
Regards,
mpsuzuki
Ferdinand Ramirez wrote:
> --- On Mon, 2/13/12, suzuki toshiya <mpsuzuki hiroshima-u ac jp> wrote:
>
>> Ahhhh... 10005 is hexadecimal expression of UCS-4 value? If
>> so, U+10005
>> is a character in "LINEAR B SYLLABLE B001 DA". And, I'm not
>> sure how
>> "\uXXXX" expression should bet used for the codepoints out
>> of BMP at present.
>> For first trial, I recommend to use PUA codepoints in BMP,
>> U+E000 - U+F8FF,
>> to check if "PUA" is the root of trouble, or non-BMP is the
>> root of trouble.
>
> I tried with F09B and it worked fine. Yes, 10005 is the hexadecimal value I gave you. I just used one of the random empty slots to test this.
>
> I am just trying to understand how I can choose a random code, map a glyph to that code and then display the glyph by invoking it from a C program that is based on gtk.
>
> Does pango simply load the font file and pull up a glyph based on whatever value I feed it? Can I bypass the gtk function and directly deal with pango or is this not possible?
>
> -Ferdinand
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]