Font Color
-
How is the color of a font stored and processed? I see that the LOGFONT structure does not have a member for the color, nor does
CFont
. How does the system keep track of the color of a font?The difficult we do right away... ...the impossible takes slightly longer.
-
How is the color of a font stored and processed? I see that the LOGFONT structure does not have a member for the color, nor does
CFont
. How does the system keep track of the color of a font?The difficult we do right away... ...the impossible takes slightly longer.
-
It doesn't; fonts do not have a colour attribute. When writing text to a device context you select the appropriate foreground and background colours that you wish to use.
Veni, vidi, abiit domum
Oh I see. I guess it depends upon what brush I use? Thanks, Richard.
The difficult we do right away... ...the impossible takes slightly longer.
-
Oh I see. I guess it depends upon what brush I use? Thanks, Richard.
The difficult we do right away... ...the impossible takes slightly longer.
it's not a brush or pen, there's a GDI function called SetTextColor.
-
Oh I see. I guess it depends upon what brush I use? Thanks, Richard.
The difficult we do right away... ...the impossible takes slightly longer.
For text, the APIs used for color are
SetTextColor
andSetBkColor
.«_Superman_» _I love work. It gives me something to do between weekends.
-
Oh I see. I guess it depends upon what brush I use? Thanks, Richard.
The difficult we do right away... ...the impossible takes slightly longer.