On 28/09/11 12:56, Vincent Torri wrote:
> 
> Hey,
> 
> I would like some advices about a font search "engine" for Evas on WIndows 
> (it would be statically linked to Evas as it would be only used in that 
> lib).
> 
> Do you know which functions I should provide so that fonts are found ?

Currently it just queries fontconfig using the pattern matching.
It matches against: font family, weight, slant, width and if set, language.

Look at src/lib/canvas/evas_font_dir.c and search for HAVE_FONTCONFIG.

You really only need to implement evas_load_fontconfig and the small if
in evas_font_load. Furthermore, you can keep fontconfig and put it in
order so whoever wants to first try fontconfig and only then try your
method can do it.

Please keep in mind that we load a list of fonts from the fontconfig
suggestions so we have fallbacks, we don't just pick the first.

> 
> Do you think that I should provide a cache system, based on eet, to store 
> that cache ?

I really don't know. We cache in Evas as well, so a lack of a caching
system on your part wouldn't really be noticed. With that being said,
just try and see, I have no idea.

> Thanks, and I hope you're feeling better

Still sick. :|

--
Tom.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to