andreas said:
How can I choose some fonts in programs so that they are always
avalable for the program at other computers, can I put them in some
resources?
Fonts are usually copyrighted, so: no.
Other posters have mentioned looking in the fonts folder. You should be able
to get the location of the fonts folder through this information from
ShlObj.h from the Windows SDK:
<snip>
//-------------------------------------------------------------------------
//
// SHGetSpecialFolderLocation
//
// Caller should use SHGetMalloc to obtain an allocator that can free the
pidl
//
//
//-------------------------------------------------------------------------
//
// registry entries for special paths are kept in :
#define REGSTR_PATH_SPECIAL_FOLDERS REGSTR_PATH_EXPLORER TEXT("\\Shell
Folders")
#define CSIDL_DESKTOP 0x0000 // <desktop>
#define CSIDL_INTERNET 0x0001 // Internet Explorer
(icon on desktop)
#define CSIDL_PROGRAMS 0x0002 // Start Menu\Programs
#define CSIDL_CONTROLS 0x0003 // My Computer\Control
Panel
#define CSIDL_PRINTERS 0x0004 // My
Computer\Printers
#define CSIDL_PERSONAL 0x0005 // My Documents
#define CSIDL_FAVORITES 0x0006 // <user
name>\Favorites
#define CSIDL_STARTUP 0x0007 // Start
Menu\Programs\Startup
#define CSIDL_RECENT 0x0008 // <user name>\Recent
#define CSIDL_SENDTO 0x0009 // <user name>\SendTo
#define CSIDL_BITBUCKET 0x000a // <desktop>\Recycle
Bin
#define CSIDL_STARTMENU 0x000b // <user name>\Start
Menu
#define CSIDL_MYDOCUMENTS 0x000c // logical "My
Documents" desktop icon
#define CSIDL_MYMUSIC 0x000d // "My Music" folder
#define CSIDL_MYVIDEO 0x000e // "My Videos" folder
#define CSIDL_DESKTOPDIRECTORY 0x0010 // <user name>\Desktop
#define CSIDL_DRIVES 0x0011 // My Computer
#define CSIDL_NETWORK 0x0012 // Network
Neighborhood (My Network Places)
#define CSIDL_NETHOOD 0x0013 // <user name>\nethood
#define CSIDL_FONTS 0x0014 // windows\fonts
#define CSIDL_TEMPLATES 0x0015
#define CSIDL_COMMON_STARTMENU 0x0016 // All Users\Start
Menu
#define CSIDL_COMMON_PROGRAMS 0X0017 // All Users\Start
Menu\Programs
#define CSIDL_COMMON_STARTUP 0x0018 // All Users\Startup
#define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019 // All Users\Desktop
#define CSIDL_APPDATA 0x001a // <user
name>\Application Data
#define CSIDL_PRINTHOOD 0x001b // <user
name>\PrintHood
<snip>
(There are lots more defined.)
Andrew