Hi,
You can enumerate fonts by using the
EnumFontFamilies function[
^] and supplying an
EnumFontFamProc callback function[
^].
or
On Windows Vista SP2 and above you could use the
IDWriteFontCollection[
^].
Font Enumeration Sample[
^].
[Update 03, December, 2011]
Sorry, I forgot about the color part of the question. You could use the
GetSystemPaletteEntries function[
^] to retrieve the system palette associated with the device context... but realistically... this is a non-issue in the year 2011.
Browser Display Statistics[
^] : 97% of the world is capable of displaying 24+ bits of color.
If you want to support the remaining 3% you should read some old articles such as:
Colors: The Safety Palette[
^]
(Notice the date of 1996)
Best Wishes,
-David Delaune