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

Re: [E-devel] patch to load fonts for missed glyphs (fontconfig)



On Sat, 8 Apr 2006 08:53:36 -0700 (PDT)
Andrei Lahun <zhirnyi@yahoo.com> wrote:

> Hello.
> After previous patch, i saw a complaints that 
> now if default font does not have glyphs we do not
> have fallback fonts and as result squares insted of
> text. 
> This patch in case there is missing glyph try to load
> fonts provided by fontconig and use one which will
> work,
> unnecessary fonts will be unloaded.

I have just completed a patch which does the same thing. But I do it at the engine level instead. 

This way all fonts which are added get lazily loaded. Not just fontconfig fonts. 

> I tested it with japanese and chinese and also with
> russian (my default locale).
> Let us say i have default font Verdana and russian
> locale i have only verdana and vera in memory,when i
> go to japanese site(japanese title in mozilla )
> kochi.ttf is loaded , then i go to
> chinese site one more font loaded .etc
> 
> p.s. I am really sorry for function/variable naming .
> 
> Andrei
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


-- 
                        Stafford M. Horne
Senior Engineer                                 高级工程师
SurfControl plc                                 美讯智科技
Peoples Republic of China, Beijing              中国人民共和国, 北京
Mobile: +86 13611014044                         手机:+86 13611014044

        (Website) http://shorne.homelinux.com/wordpress (网站)