Req More font weight options & capitalise - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Req More font weight options & capitalise (/showthread.php?tid=220249) Pages:
1
2
|
More font weight options & capitalise - Hitcher - 2015-03-03 Couple of font requests
RE: More font weight options & capitalise - Mudislander - 2015-03-03 "Capitalise the first letter of each word." would be great!! RE: More font weight options & capitalise - mkortstiege - 2015-03-03 Quick and dirty try @ https://github.com/mkortstiege/xbmc/tree/capitalize. A win32 testbuild based on master is queued on jenkins and should be on the mirrors later. Should work like lower- and uppercase with using [CAPITALIZE] and/or with capitalize <style> tag in fonts.xml RE: More font weight options & capitalise - mkortstiege - 2015-03-03 What exactly do you mean with "lighter and bolder weights"? RE: More font weight options & capitalise - Hitcher - 2015-03-03 (2015-03-03, 21:07)mkortstiege Wrote: Quick and dirty try @ https://github.com/mkortstiege/xbmc/tree/capitalize. A win32 testbuild based on master is queued on jenkins and should be on the mirrors later.Awesome, thanks. (2015-03-03, 21:08)mkortstiege Wrote: What exactly do you mean with "lighter and bolder weights"?https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Examples I had a poke around GitHub and found the bold code if that helps - https://github.com/xbmc/xbmc/blob/c096e7eed321a0c90073d73d35cec463cefc5a0e/xbmc/guilib/GUIFontTTF.cpp Code: // Embolden code - original taken from freetype2 (ftsynth.c) RE: More font weight options & capitalise - Hitcher - 2015-03-03 (2015-03-03, 21:07)mkortstiege Wrote: Quick and dirty try @ https://github.com/mkortstiege/xbmc/tree/capitalize. A win32 testbuild based on master is queued on jenkins and should be on the mirrors later. Working as expected except for acronyms. NYPD becomes Nypd N.Y.P.D becomes N.y.p.d Also McCloud becomes Mccloud. I guess this is converting all the letters (first to upper and the rest to lower) whereas it might be simpler to just convert the first to upper if it isn't already. RE: More font weight options & capitalise - mkortstiege - 2015-03-03 Right. That's what i mean with quick n dirty Will fix and send a PR tomorrow. Will also look into the embolden one you linked. RE: More font weight options & capitalise - Hitcher - 2015-03-03 RE: More font weight options & capitalise - Hitcher - 2015-03-14 A few more instances where the first letter gets missed are words following a bracket, slash, hyphen and quote. Code: ( / - " (2015-03-03, 22:25)mkortstiege Wrote: Will also look into the embolden one you linked. Also any luck with this yet? Thanks. RE: More font weight options & capitalise - mkortstiege - 2015-03-14 Will check why those are missing. No luck on the embolden one yet. I just had a brief look at it and i am still trying to get familiar with the guilib .. RE: More font weight options & capitalise - mkortstiege - 2015-03-14 Could you please give some examples and what you expect it to become? RE: More font weight options & capitalise - Hitcher - 2015-03-14 This is a good example of different weights. Code: 100 Thin (Hairline) RE: More font weight options & capitalise - mkortstiege - 2015-03-14 Oh I actually meant the uppercasing one :p RE: More font weight options & capitalise - Hitcher - 2015-03-14 Sorry, here you go. Thanks. [split] Changes to the skinning engine for Kodi Isengard - Hitcher - 2015-03-20 (2015-03-10, 22:05)ronie Wrote: 2015-03-10 Fonts - ability to capitalize the first letter of each word Also working in the font.xml style field. Updated the wiki. eg Code: <font> |