Wiladams/svgandme

FontHandler

Opened this issue · 0 comments

Hi William,
Im'going to finalize my integration with SvgAndMe.

I patched a cross-platform solution so that an "Arial.ttf" of my own is always pre-loaded, plus few more ttf/ttc font-files "picked from the platform" (if they exists).

Personally I don't like (or I don't understand) these SVG files using some external fonts.
Trying to load your "gallery/tango.svg" with my TclTk app or with your svgimage.exe, I got a lot of warning like this
== FontHandler::selectFontFamily, NOT FOUND; DejaVu Sans
and this is the result ...

immagine

Anyway, if SVG allows (by design) these 'approximations', .. I'll have to like them.

Now, here are some of my specific questions about waavs::FontHandler:
a) isn't there a method to unload a font ? (hmm .. BLFonManager has no such method .. )
b) trying to load an already loaded font should be a no-op, .. shouldn't it ?
c) why method FontHandler::loadFontFace(const char* filename, BLFontFace &ff) requires these two arguments ? Only the filename is necessary. Am I missing something ?