Hi ??????! On 2006.04.20 at 16:57:02 +0800, ?????? wrote next:
I always thought that it's one of the main purpuses of fontconfig, to calculate the best matching font for the symbols that don't exist in current...
I don't know fontconfig, but looking at the docs, it looks like you need to call FcFontRenderPrepare or something like that and get a a list of similar fonts to the one selected and use it.
Does this mean that we should check every char for a list of fonts? I guess that would be too expensive for sub rendering.
I don't think so. For example, you have "Arial" font, picked by user. You want to render CJK symbol. Fontconfig calculates that "Kochi Gothic" font is closest to "Arial". Now you have "Arial; Kochi Gothic" font list. If next required symbol is in either of them, then they are used (in order); if not, say you want to render some math symbol, another font lookup is performed and now you have three fonts in the list. I haven't really checked it, but according to documentation, it should work this way. -- Vladimir