subtile font scaled too short in wide screen
#1
My screen and video resolution set to 1920x1200(Desktop).
UI font looks fine, but video subtitle looks shorter.

I linked a Chinese font(msyh.ttf) to origional skin/subtitle font.The font normally looks nicer with width/height ratio close to 1:1.Wink

Here is someting in the log
UI 1920x1200
Quote:10:44:05 T:1121609440 M:1062187008 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (33.333336): width = 43, height = 45, lineheight = 44
10:44:05 T:1121609440 M:1062187008 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (36.666668): width = 48, height = 49, lineheight = 48
10:44:05 T:1121609440 M:1062187008 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (40.000000): width = 52, height = 53, lineheight = 53
10:44:05 T:1121609440 M:1062187008 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (44.444447): width = 58, height = 59, lineheight = 59
Video 1920x1200
Quote:10:44:13 T:1121609440 M:1011671040 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/media/Fonts/msyh.ttf (66.666672): width = 122, height = 88, lineheight = 88

And here is info in 1400x1050
UI 1400x1050
Quote:10:54:21 T:2062034656 M:1047244800 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (25.520834): width = 39, height = 34, lineheight = 34
10:54:21 T:2062034656 M:1047244800 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (29.166668): width = 45, height = 39, lineheight = 39
10:54:21 T:2062034656 M:1047244800 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (30.989584): width = 48, height = 42, lineheight = 41
10:54:21 T:2062034656 M:1047244800 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (34.635418): width = 45, height = 46, lineheight = 46
10:54:21 T:2062034656 M:1047244800 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/skin/Project Mayhem III/fonts/FrancophilSans.ttf (34.635418): width = 42, height = 46, lineheight = 46

Video 1400x1050
Quote:10:54:29 T:2062034656 M:1007116288 DEBUG: Load Scaled size of font /home/chrisyu/XBMC/BUILD/media/Fonts/msyh.ttf (58.333336): width = 90, height = 77, lineheight = 77

Should I provide screenshot or something?

Thanks.
Reply
#2
It's because your source resolution (I suspect a 4x3 mode) for those modes appear to be the same, and the font is being scaled assuming the output aspect is the same as the source resolution.

Try and find out what video mode (should be in the Debug Log from xbmc) it is loading the skin files from (when in fullscreen and when in the GUI), and what video mode it is using for fullscreen video.

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
#3
jmarshall Wrote:It's because your source resolution (I suspect a 4x3 mode) for those modes appear to be the same, and the font is being scaled assuming the output aspect is the same as the source resolution.

Try and find out what video mode (should be in the Debug Log from xbmc) it is loading the skin files from (when in fullscreen and when in the GUI), and what video mode it is using for fullscreen video.

Cheers,
Jonathan

You mean source resolution is the video file's resolution?
If I was not wrong, almost all my videos are 720p and 1080p, some of them are 4:3. But subtitle font looks like just the same.

About video mode, I don't know where to check. I've paste my log file here.
http://rafb.net/p/boQrmo76.html

Or is there a way to make font width:height=1:1?

Thank you.
Reply
#4
Log doesn't tell me what I want unfortunately.

What I meant is the source skin resolution for fullscreen video. The font scaling works by scaling the font so that it matches the screen as if both the source (skin) and destination (screen) resolutions could be displayed on the same screen with everything looking identical.

If the skin resolution is a 4x3 res, it will be stretched to fit on the screen res (16x9-ish) so the fonts will look too wide.

If the skin resolution is a 16x9 res, then no stretching occurs, and the fonts will look correct.

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
I am using skin Project Mayhem III, 1080i mode(I changed Font.xml in 1080i folder, and it worked).
How could I verify it's 16x9 or 4x3 for sure?

Thank you for your time. Wink
Reply
#6
I uploaded 2 pics to show the problem.
UI and video resolution is 1920x1200(Desktop).
Video file is Carnivàle S01E01 HDTVRip 720p x264 FiNE.mkv, VIDEO: [avc1] 1280x720 24bpp 23.976 fps(from mplayer).
I changed the text in subtitle to compare to the UI's.

This one using skin Aeon, cause it has more info while playing.
You can see the fonts in subtitle are shorter than those in playing info area, both Chinese and English.
Image

Same scene with Project Mayhem III.
Image

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
subtile font scaled too short in wide screen0