How to make a label with two different Fonts - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: How to make a label with two different Fonts (/showthread.php?tid=39872) |
How to make a label with two different Fonts - Beatzeps08 - 2008-11-03 Hey, I just started to "learn" skinning with the Skinning Engine of XBMC. Now I already have my first problems. I think it is the mosy easiest way if I just show what I mean with Images: At first how I arranged it in Photoshop Now an example where the text is centered good And here an example which shows the opposit^^ And here is the Code for the WrapList: Code: <control type="wraplist" id="300"> Okay, you see the Labels (thin and bold) are not really centered and I don't know how to do it. My first problem was even to add two diffrent fonts and let them (independet from the width which depents on the shown text) show up side by side. I made it then as you can see with "<align>right</align>" for the first thin label and "<align>left<align>" for the second main-label. Isn't there any easier method to format two diffrent fonts in one label? Maybe someone has some nice help for me =). Thank you. - jmarshall - 2008-11-03 No, you can't have 2 different fonts in the same label. You can have bold vs non-bold in a single label (and different colours) but not a different font altogether. You could do the centering manually if you insist on different fonts I think, by using conditional slide animations to move things over based on which listitem is visible? - Beatzeps08 - 2008-11-04 Okay thank you. I know that it is much to "complicated" to make two labels because I only use one font with diffrent bold-settings. But when I use only the Bold-Formatting Syntax of the Skinning Engine, it looks really bad, because its not the right height and not bold enought etc. Nevertheless, thank you and maybe I try it first without the second label. - skunkm0nkee - 2008-11-04 You could edit the font so that the bold chars are a different font, that way you could use bold/non-bold in the same label to produce 2 different fonts on screen. - Beatzeps08 - 2008-11-04 I thought that XBMC uses his own "Bold-Making-Engine" and only extend in this way the normal font with some pixels. And how can I add a bold characters to an existing font? Do you know a programm? Another idea would be maybe because I only use the Caps of the font, that I delete all the small chars from the font and replace them with my bold Caps... Thank you. - jmarshall - 2008-11-04 Correct, XBMC boldify's the font ourselves. Caps/non-caps could be an option as you say. One thing to watch here is non-ascii characters though! |