since #PB_Font_StrikeOut, #PB_Font_Underline and #PB_Font_HighQuality
are bitflags for exactly the same style flag-'register' as Bold and Italic,
you'll
need to put them into new constants
if it should make the merest sense.
as Devivec kindly pointed out, this would mean 31 combinations => 26 new constants.
if you say, you only want Bold and Italic combined to one new constant - where exactly is your problem?
where is the difficulty in writing
introducing one little constant and not the other 25 would not mean "being less ambigous",
it would mean creating an inconsistency.
every little status of every single element that could be flagged with one bit has a constant for this bit.
there are no combined constants, in no context.
you did not answer this question:
Demivec wrote:What were the font styles that were not currently supported?
when a flag is missing, ok, it should be implemented.
but I see no Flag missing so far....
PS:
maybe you are puzzled by the decimal numbers.
when you debug it binary, you'll see the single bits.
Code: Select all
#PB_Font_Underline 0000000000000100
#PB_Font_StrikeOut 0000000000001000
#PB_Font_HighQuality 0000000000010000
#PB_Font_Bold 0000000100000000
#PB_Font_Italic 0000001000000000
see? each style has a bit, all five style could be arbitryrily combined.
also, when you look at a text editor like Word, you have TWO buttons, one for Bold and one for Italic, that can be pressed or not, each for each.
there is no third "IB" button...