On Tue, 2005-01-25 at 13:00 +0900, NAKAMURA Ken'ichi wrote: > Hello, > > Now I am trying to add Japanese dual-width punctuation spacing > to Pango FC shape engine. > (Japanese dual-width punctuation requires special treatment. See > JIS X 4051) > > pango_font_family_is_monospace() seems to classify dual-width font > family as monospace. But, how do I get PangoFontFamily from > PangoFont? > Or my plan is wrong? You can use pango_font_describe() and then look up the face for the family in the descrition. But I think it is easier to use PangoFcFont.font_pattern and FcPatternGetInteger (fontset->fonts[i], FC_SPACING, 0, &spacing) (See pango_fc_font_map_list_families for an example of the latter.) Regards, Owen
Attachment:
signature.asc
Description: This is a digitally signed message part