TTF antialiasing support added! =)
#1
hi all,

just a quick note that i've added ttf anti-aliasing to xbmc. this means ttf fonts look just as nice as xpr fonts do.

so, you may now use ttf fonts in favour of xpr fonts by default if you wish.

currently with pm3, the ttf fonts use a total of around 1mb more memory, but i suspect that that will be reduced significantly once it's optimized, and they'll basically be reasonably equivalent memory-wise.

i also have a few optimisations to make speed-wise as well, though the framerate currently only drops with heaps of text onscreen in debug mode. these are of lower priority than the memory optimisations.

the advantage of ttf fonts is that they're more localizable, assuming you can get fonts that have the extra characters.

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#2
(jmarshall @ may 10 2005,12:46 Wrote:hi all,

just a quick note that i've added ttf anti-aliasing to xbmc.  this means ttf fonts look just as nice as xpr fonts do.

so, you may now use ttf fonts in favour of xpr fonts by default if you wish.

currently with pm3, the ttf fonts use a total of around 1mb more memory, but i suspect that that will be reduced significantly once it's optimized, and they'll basically be reasonably equivalent memory-wise.

i also have a few optimisations to make speed-wise as well, though the framerate currently only drops with heaps of text onscreen in debug mode.  these are of lower priority than the memory optimisations.

the advantage of ttf fonts is that they're more localizable, assuming you can get fonts that have the extra characters.

cheers,
jonathan
:kickass: yes !!! great news.

thanks for your hard work.
  • ASRock ION 330 OpenELEC XBMC Frodo.
  • 47" LG HDTV1080p, AC3/DTS Receiver.
  • 96" Epson LCD 1080p projector
  • 2x Raspbery Pi with XBMC
Reply
#3
does this also mean srt subtitles are anti-aliased? :o
been waiting for that for so long, if not still great work :bowdown:
Reply
#4
should be, yeah. probably needs a bit of work to optimise the black outline though.

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
nice, will be testing it in a few minutes and let you know
Reply
#6
appears srt subs are totally broken atm Image

10-05-2005 23:48:20 debug msg:mplayer_open_file(g:\movies\shark.tale.ws.dvdrip.xvid-alliance\alli.st.xvid.avi)
10-05-2005 23:48:20 info stating file g:\movies\shark.tale.ws.dvdrip.xvid-alliance\alli.st.xvid.avi.conf
10-05-2005 23:48:20 info stating file q:\system\players\mplayer\g:\movies\shark.tale.ws.dvdrip.xvid-alliance\alli.st.xvid.avi.conf
10-05-2005 23:48:20 debug msg:playing g:\movies\shark.tale.ws.dvdrip.xvid-alliance\alli.st.xvid.avi.
10-05-2005 23:48:20 debug msg:auto open z:\subtitle
10-05-2005 23:48:20 debug msg:
cache fill: 0.00% (0 bytes)
10-05-2005 23:48:20 debug msg:
cache fill: 0.00% (0 bytes)
10-05-2005 23:48:20 debug msg:avi file format detected.
10-05-2005 23:48:21 debug msg:video: [xvid] 576x304 12bpp 23.976 fps 949.5 kbps (115.9 kbyte/s)
10-05-2005 23:48:21 debug msg:clip info:
10-05-2005 23:48:21 debug msg: software: nandub v1.0rc2
10-05-2005 23:48:21 debug msgConfusedtarting lookup for subs
10-05-2005 23:48:21 debug msgConfusedub: detected subtitle file format: subviewer
10-05-2005 23:48:21 debug msgConfusedub: read 880 subtitles
10-05-2005 23:48:21 debug msg:.
10-05-2005 23:48:21 debug msgConfusedub: adjusted 13 subtitle(s).
10-05-2005 23:48:21 debug msg:global subsize: 1 - vobsub: -1, demux: -1, subs: 0
10-05-2005 23:48:21 debug msg:global subpos : 0
10-05-2005 23:48:21 debug msg:==========================================================================
10-05-2005 23:48:21 debug msg:opening audio decoder: [mp3lib] mpeg layer-2, layer-3
10-05-2005 23:48:21 debug msg:audio: 48000 hz, 2 ch, 16 bit (0x10), ratio: 4000->192000 (32.0 kbit)
10-05-2005 23:48:21 debug msgConfusedelected audio codec: [mp3] afm:mp3lib (mp3lib mpeg layer-2, layer-3)
10-05-2005 23:48:21 debug msg:==========================================================================
10-05-2005 23:48:21 debug msg:==========================================================================
10-05-2005 23:48:21 debug msg:opening video decoder: [ffmpeg] ffmpeg's libavcodec codec family
10-05-2005 23:48:21 debug msgConfusedelected video codec: [ffodivx] vfm:ffmpeg (ffmpeg mpeg-4)
10-05-2005 23:48:21 debug msg:==========================================================================
10-05-2005 23:48:21 debug msg:checking audio filter chain for 48000hz/2ch/16bit -> 48000hz/6ch/16bit...
10-05-2005 23:48:21 debug msg:af_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
10-05-2005 23:48:21 debug msg:af_pre: 48000hz 2ch signed 16-bit (little-endian)
10-05-2005 23:48:21 debug msg:ao: [win32] 48000hz 2ch signed 16-bit (little-endian) (2 bps)
10-05-2005 23:48:21 debug msg:building audio filter chain for 48000hz/2ch/16bit -> 48000hz/2ch/16bit...
10-05-2005 23:48:21 debug msgConfusedtarting playback...
10-05-2005 23:48:21 debug msg:mplayer_open_file(g:\movies\shark.tale.ws.dvdrip.xvid-alliance\alli.st.xvid.avi) done 1.0000
10-05-2005 23:48:21 debug playback has started
10-05-2005 23:48:21 info activating window id: 12005
10-05-2005 23:48:21 notice start led control
10-05-2005 23:48:21 notice led control: playing video led is switched off!
10-05-2005 23:48:21 notice dim lcd on playback
10-05-2005 23:48:21 debug msg:vdec: vo config request - 576 x 304 (preferred csp: planar yv12)
10-05-2005 23:48:21 debug msg:vdec: using planar yv12 as output csp (no 0)
10-05-2005 23:48:21 debug msg:movie-aspect is 1.89:1 - prescaling to correct movie aspect.
10-05-2005 23:48:21 debug msg:vo: [directx] 576x304 => 576x304 planar yv12
10-05-2005 23:48:21 info created yuv texture

cant get them to appear when i select a ttf font, but they also dont work if i set a raw font
i know the movies i tested used to work ok
Reply
#7
- 10-05-2005 fixed: ttf subs were transparent. also improved the quality of the borders etc.

omg, i cant believe the difference, nothing short of amazing :bowdown:
even the normal arial font looks crisp and making it bold is nice Shocked
great work, this is imho one of the best improvements lately
Reply
#8
agreed Wink

another step to a more professional xbmc



Image

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
hey choke, what we figure out on kml.. i am still in the dark on it and redoing it is like root canal without a local.
Image
Reply
#10
ya its weird - what happened to the original author? he might know how to sort it out
Image

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
how does this work guys ? can i just put another font in the fonts dir ? and then ?
Reply
#12
select it from the settings, my movies subs etc
Reply
#13
thanks jmarshall, ttf anti-aliasing looks very nice in xbmc!

however, could it be considered adjusting the primary color - white - to a bit dimmer, then it'll look perfect, 'cauze subtitle is part of the elements that constitute a screen picture, so it's ideal that the brightness of subtitle colour is in harmony with the video picture, if the subtitle colour is a bit too bright, the screen picture will look somewhat dissonant. if the brightness of subtitle color is harmonious with video picture, it'll look more comfortable.

some dvd producers, like criterion collection, are smart and professional, if they find the picture quality is not that sharp, or most part of the movie is set in a small place, say a room, then they will adjust the brightness of the subtitle to far dimmer than normal, because they know this will make the screen picture look more comfortable and harmonious, if they always insisted on using bright subtitle color, regardless of the video picture quality, some movies will be ruined due to this.

talking about brightness of subtitle, some tv channels really do a nice job, their subtitle color is anti-aliased, and never too bright, and this makes the screen picture look quite nice and comfortable.

all this, of course, is from my point of view, maybe you have different opinion about this, so the above-mentioned suggestion is for your consideration only.
Reply
#14
antialiasing is very nice but i think it introduce bug for some languages that use zero space characters.

i'm not 100% sure it is the cause by this new features but i thinks the bug appears in the cvs version after this feature has been added.

click here for more details and screenshot:
http://www.xboxmediaplayer.de/cgi-bin....t=14855

p.s. if anyone has last xbmc version that does not have subs antialiasing please contact me. i want to make sure that this feature is the cause of the problem.
Reply
#15
this is very cool news... great work guys! lets hope we can get rid of xpr fonts altogether. :kickass:
Reply

Logout Mark Read Team Forum Stats Members Help
TTF antialiasing support added! =)0