Nobody there who can help me?
Hi,
My ExtRecMenu-plugin (and even my Nordlicht's EPG-plugin) uses a function to add icons to the used fonts. It changes some of the unused signs ( between 0x80 and 0x9f) by directly changing their data.
Since VDR introduced true type fonts, this function doesn't work anymore. I tried to understand how to use CreateFont from the class cFont to do the same with newer VDR versions but I failed.
Is it possible to change font data directly in code or do I have to create my own true type font containing the icons?
Regards, Martin
"Martin Prochnow" martinprochnow@yahoo.de wrote:
Is it possible to change font data directly in code or do I have to create my own true type font containing the icons?
the best aproach IMHO would be an API in VDR that allows you to "nail" custom glyphs into the glyph cache. though this could lead to problems if multiple plugins overwrite the same codepoints in the cache. using a custom font would work too but you would force every user of your plugin to use that font. making a ttf font is no fun either. maybe there should be some way to mix cOsd::Bitmap with normal text?
best regards ... clemens
On 03/02/08 10:25, Clemens Kirchgatterer wrote:
"Martin Prochnow" martinprochnow@yahoo.de wrote:
Is it possible to change font data directly in code or do I have to create my own true type font containing the icons?
the best aproach IMHO would be an API in VDR that allows you to "nail" custom glyphs into the glyph cache. though this could lead to problems if multiple plugins overwrite the same codepoints in the cache. using a custom font would work too but you would force every user of your plugin to use that font. making a ttf font is no fun either. maybe there should be some way to mix cOsd::Bitmap with normal text?
Messing with the fonts is not a good idea, IMHO.
I'll see about a method to add icons to the menu items. However, this has veeery low priority ;-)
Klaus