Re: Familiy name in Alias and alias brokeness.



On Tue, 2003-02-04 at 04:07, Akira TAGOH wrote:
> >>>>> On 03 Feb 2003 10:31:28 -0500,
> >>>>> "CC" == Chema Celorio <chema ximian com> wrote:
> 
> CC> We no longer have a .fontmap file, we moved from using our own fontmap
> CC> to loading the fonts from fontconfig. I think we do need the fontmap, it
> CC> makes the implementation cleaner, we have to scan the fonts known to
> CC> fontconfig and filter out the ones we don't care about or know how to
> CC> handle. Also, we need to populate the font dialog so we have to load the
> CC> fontmap file then.
> 
> Well, why does gnome-print need to know whether the font is
> the alias font or not? I think fontconfig can handles
> properly. as you pointed out, GP_FONT_ENTRY_ALIAS is no
> longer used in gnome-print. if whether checking is_alias on
> gnome_font_family_style_list() is disabled, isn't the font
> dialog issue solved?
> Probably attached patch should works.

Because font aliases in fontconfig are not part of the "list of fonts", 
you have to create them. See gp_fontmap_load_fontconfig that is where we
get the list of fonts and then in gp_fontmap_add_aliases we add the
aliases.

Chema






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]