2015-07-12, 16:57
I've almost got the option to lighten (opposite of embolden) a font working in Kodi but there's one last part I can't solve on my own and need the help of a dev, or someone with C++ knowledge, to work out how to fix.
Here's the full commit - https://github.com/HitcherUK/xbmc/commit...e5aeb09dbe
And this is the part of the code found in GUIFont.h that's causing the problem -
When FONT_STYLE_LIGHT is swapped with either FONT_STYLE_BOLD or FONT_STYLE_ITALICS it works but then they don't so I'm assuming flag 4 is too high for it to work. All the other styles (FONT_STYLE_UPPERCASE, etc) can happily use higher flag values without any problem.
Can anyone help out or at least point me to where the range set?
Many thanks.
Here's the full commit - https://github.com/HitcherUK/xbmc/commit...e5aeb09dbe
And this is the part of the code found in GUIFont.h that's causing the problem -
PHP Code:
#define FONT_STYLE_NORMAL 0
#define FONT_STYLE_BOLD 1
#define FONT_STYLE_ITALICS 2
#define FONT_STYLE_LIGHT 4
#define FONT_STYLE_UPPERCASE 8
#define FONT_STYLE_LOWERCASE 16
#define FONT_STYLE_CAPITALIZE 32
#define FONT_STYLE_MASK 0xFF
When FONT_STYLE_LIGHT is swapped with either FONT_STYLE_BOLD or FONT_STYLE_ITALICS it works but then they don't so I'm assuming flag 4 is too high for it to work. All the other styles (FONT_STYLE_UPPERCASE, etc) can happily use higher flag values without any problem.
Can anyone help out or at least point me to where the range set?
Many thanks.