![]() |
TTF-Fonts in XBMC for Subtitles - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: TTF-Fonts in XBMC for Subtitles (/showthread.php?tid=5332) Pages:
1
2
|
- ezar2003 - 2004-08-22 i make to work subtitles with ttf fonts ![]() for test it: a) download new mplayer (include ttf support) >> download here b) add this in msvcrt.h Quote:#ifdef global_scopec) compile xbmc d) transfer files to xbox. (note: overwrite mplayer.dll and codecs.conf that you download after) e) rename mplayer\font to mplayer\fonts (make this for mplayer don't detect this fonts) f) transfer a ttf font to mplayer directory. rename ttf font to 'subfont.ttf' g) start xbmc and test subtitles and osd. this is only for a test... i'll modify xbmc for select fonts and don't need to rename nothing! (i make a pack and upload to sf, if you want) i take this images with courier new italic: ![]() ![]() - pike - 2004-08-22 cool ezar! but i havent got cvs installed atm, so cannot test at the moment (you said there was changes in .xbe also) - Guybrush - 2004-08-22 if there's alot of interest i can add this to cvs too, i guess its just adding the freetype library and --enable-freetype, right ezar? note that this will make the dll grow. - A600 - 2004-08-22 ezar, ¡estás hecho una máquina! i've tried it and works very well :kickass: the only problem i see is that the font displayed is too big, even with the 'enlarge subtitles' option set to 0% - Striker - 2004-08-22 yes, i think the vobsubs are too large already sometimes even when set to 0%. with my small old tv they were too small so enlarging them was great. but with my new widescreen te subs are a bit too big. negative enlargement would be appreciated ![]() ezar can you also extend it to select a color for the font, amount of shade, etc. ![]() - ezar2003 - 2004-08-23 @guybrush: you need to add libiconv support too. yes, it's grow... i upload source, if you want. you can download mplayer source code ttf support... i want to modify xbmc code for select font. please, almost... can you add the msvcrt.h update to cvs? @a600: ¡gracias! it's true! the font displayed is big... mplayer enlarge to fit page. @striker: i look it ![]() - Gamester17 - 2004-08-23 great stuff!, now all(?) that is missing for it is a simple gui interface under xbmc settings menu to allow users to easily change font, maybe even make it as easy as ms-windows and give a option to select font by language and country, ex. chinese (traditional), china? wait, another supersweet addition would be a set a of default (legal/non-copyrighted/open-source) fonts for all/most languages ![]() - yuvalt - 2004-08-23 this is great! why do you need libiconv?? - yuvalt - 2004-08-23 btw, why do you say that mplayer displays it? do you render it in mplayer or do you just pass a text string to xbmc and use the ttf api to display? - jmarshall - 2004-08-23 yuvalt: mplayer renders it and passes the bitmap to us for display. at least that is what it does for all subtitles at the moment. cheers, jonathan - ezar2003 - 2004-08-23 @yuvalt: freetype need this lib. @yuvalt/jmarshall: yes, it work like as jmarshall say. @a600: for make letter small, you have some options. i like this: "add in mplayer.conf (this file is in mplayer directory) 'subfont-text-scale=4'". all this must to be in a simple gui interface under xbmc settings menu (i work on it). other options that you can test: Quote:spuaa=<mode> (osd only) - chadoe - 2004-08-23 hmm i must be doing something wrong, i'm getting this exception with every video i try to play: Quote:*** [vo] allocating (slices) mp_image_t, 592x320x12bpp yuv planar, 284160 bytes - yuvalt - 2004-08-23 the way we rendered ttf in xbmp was different. we passed the string from mplayer to xbmp which rendered it. i don't know which way is better.. anyway, let's not have several ways of doing subtitle fonts (like in xbmp). if we think this is the way to go, let's drop the raw fonts and replace them with ttf fonts and make that the only way. thoughts? - Guybrush - 2004-08-23 hmm why drop the raw fonts as well? mplayer supports both - simon1219 - 2004-08-24 using ezar2003 method i'm able to use the windows chinese font "simsun" to display english subtitles but not able to display chinese subtitles i.e. chinese-simplify srt subtitle. it is displayed as a series of non-readable characters e.g. _@# etc can mplayer.dll decode unicode encoded subtitles e.g. simplified and tranditional chinese character assuming that the ttf font support these characters? |