> The first thing you should do is to ask on the
> wxwidgets list how users can specify the specific fonts corresponding
> to the wxwidgets generic fonts on both Linux and Windows.

I found the following in wxPdfDocument (pdffontmanager.cpp):
#if defined(__WXMSW__)
#include <wx/msw/registry.h>
#elif defined(__WXGTK__)
#include <fontconfig/fontconfig.h>
#elif defined(__WXMAC__)
#include "wx/pdffontmacosx.h"
#endif

So I guess fontconfig is used only on linux, at least for
wxPdfDocument. I have not found for wxWidgets itself.

For wxWidgets itself, this is what I found from
http://docs.wxwidgets.org/3.1/overview_font.html:
"A font is determined by the following parameters (not all of them
have to be specified, of course):
Point size, Family, Style, Weight, Underlining, Face name (If NULL, a
default typeface will chosen based on the family).

Specifying a family, rather than a specific typeface name, ensures a
degree of portability across platforms because a suitable font will be
chosen for the given font family, however it doesn't allow to choose a
font precisely as the parameters above don't suffice, in general, to
identify all the available fonts and this is where using the native
font descriptions may be helpful - see below.

Under Windows, the face name can be one of the installed fonts on the
user's system. Since the choice of fonts differs from system to
system, either choose standard Windows fonts, or if allowing the user
to specify a face name, store the family name with any file that might
be transported to a different Windows machine or other platform."

So it seems possible to choose a particular font based on its name.
But is it possible to provide the font files to be sure the font is
found, I don't know.

F

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to