How to set subtitle font as bold?
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
How to set subtitle font as bold?
Hi
I have a big problem to set subtitle font as bold. It only works as regular because present option to set font:

takes only windows font name and not actual filename.ttf.
So is there a way to force bold font for subtitles? Thanks in advance for any help.
UMS 6.6.0 & Windows 8.1, Java 8
I have a big problem to set subtitle font as bold. It only works as regular because present option to set font:

takes only windows font name and not actual filename.ttf.
So is there a way to force bold font for subtitles? Thanks in advance for any help.
UMS 6.6.0 & Windows 8.1, Java 8
Re: How to set subtitle font as bold?
Hi,
That's how it's displayed on my Windows OS:
So, as you can see, it's easy to choose a bold font if i want. Also if your OS doesn't display the same, your explorer should be, if you choose to display the content with the "Details" Windows explorer option.
That's how it's displayed on my Windows OS:
So, as you can see, it's easy to choose a bold font if i want. Also if your OS doesn't display the same, your explorer should be, if you choose to display the content with the "Details" Windows explorer option.
Re: How to set subtitle font as bold?
Hi,
Thanks for help but it must be some incompatibility then. UMS doesn't detect any fonts in Windows folder. It won't work even when I type full path to font file manually - it only loads default Arial font then. It looks as if UMS doesn't have access to fonts this way. Maybe it's OS depended ? I'm on Win 8.1.
It doesn't get passed to ffmpeg.exe when looking to logs:
As you see: force_style='
Here should be font path entered but is only '
Edit:
Could you tell me how your subtitles_font = line looks in ums.conf ?
Edit2:
UMS can't access any font by full path (only by Windows font name) 
Thanks for help but it must be some incompatibility then. UMS doesn't detect any fonts in Windows folder. It won't work even when I type full path to font file manually - it only loads default Arial font then. It looks as if UMS doesn't have access to fonts this way. Maybe it's OS depended ? I'm on Win 8.1.
It doesn't get passed to ffmpeg.exe when looking to logs:
Code: Select all
DEBUG 2017-06-19 13:14:05.314 [ffmpeg64.exe-2] Starting "C:\Program Files (x86)\Universal Media Server\win32\ffmpeg64.exe" -y -loglevel info -i V:\Seriale\Battlestar.Galactica.1978.S01.PL.BluRay.720p.x264.AC3-LTN\Battlestar.Galactica.1978.S01E01-E03.PL.BluRay.720p.x264.AC3-LTN.mkv -filter_complex pad=ih*(16/9):ih:(ow-iw)/2:0,scale=1280:720,subtitles=V\\:/Seriale/Battlestar.Galactica.1978.S01.PL.BluRay.720p.x264.AC3-LTN/Battlestar.Galactica.1978.S01E01-E03.PL.BluRay.720p.x264.AC3-LTN.mkv:si=0:force_style=',Fontsize=18.0,PrimaryColour=&H00CCFFFF,Outline=1,Shadow=1,MarginV=15' -map 0:v -map 0:a:1 -bufsize 20000k -maxrate 19000k -crf 24 -ab 640k -ar 48000 -c:a ac3 -c:v libx264 -tune zerolatency -pix_fmt yuv420p -f mpegts -preset veryfast -profile:v high -level 41 \\.\pipe\ffmpegvideo_115_1497870845010
Here should be font path entered but is only '
Edit:
Could you tell me how your subtitles_font = line looks in ums.conf ?
Edit2:
Code: Select all
DEBUG 2017-06-21 10:29:05.268 [New I/O worker #67] Reading subtitles_font: "C:\Windows\Fonts\PTN77F.ttf" (previous: "Trebuchet MS", default: "")
DEBUG 2017-06-21 10:29:05.271 [New I/O worker #67] Font name not found. Check if it is properly specified or installed in the OS

Re: How to set subtitle font as bold?
Check that the user UMS is running as (if you simply start it from a shortcut, that would be your user) has read access to C:\Windows\Fonts. If you have a "home edition" of Windows, you have to go to "safe mode" to view and change file and folder permissions (blame Microsoft).
Edit: A more probably solution is that you have "Hide extensions" enabled, and that the fonts are filtered out because they don't end with ".ttf". To change that, open Windows Explorer, go to Tools -> Options -> View and disable "Hide file extensions for known types" (or something like that).
Edit: A more probably solution is that you have "Hide extensions" enabled, and that the fonts are filtered out because they don't end with ".ttf". To change that, open Windows Explorer, go to Tools -> Options -> View and disable "Hide file extensions for known types" (or something like that).
Re: How to set subtitle font as bold?
Hi,
It have nothing to do with your OS version, IMO, as many users use Windows until version 10 without any issue. So it need to be something related to your OS configuration or UMS / Java install.
Mine, look like this:
If you can access your "Fonts" folder with your Windows explorer that mean that your Java / UMS install could have issue, or at least the permissions given to it.
It seem only related to your OS configuration.
It have nothing to do with your OS version, IMO, as many users use Windows until version 10 without any issue. So it need to be something related to your OS configuration or UMS / Java install.
Mine, look like this:
Code: Select all
subtitles_font =C:\\WINDOWS\\Fonts\\arialbd.ttf
It seem only related to your OS configuration.
Re: How to set subtitle font as bold?
Thanks for help. That's not good.
@Nadahar
All hiding options disabled.
@Sami32
Yes, from Explorer or Total commander all fonts are perfectly visible. UMS is run as admin so shouldn't be any problems. I did try clean install of various UMS versions but without success so only Java remains. But how it could be wrong? Any advice, please.
Does it work if you choose other than default Arial font? Maybe no one changes font ?
@Nadahar
All hiding options disabled.
@Sami32
Yes, from Explorer or Total commander all fonts are perfectly visible. UMS is run as admin so shouldn't be any problems. I did try clean install of various UMS versions but without success so only Java remains. But how it could be wrong? Any advice, please.
Does it work if you choose other than default Arial font? Maybe no one changes font ?

Re: How to set subtitle font as bold?
@Larus That's very strange. Please uploads debug files as described in red above so we can see if there's some kind of problem on UMS' side.
Re: How to set subtitle font as bold?
Yes, it does.
Maybe your log could help us to see something that you've missed or forgot to tell us.
Code: Select all
subtitles_font =C:\\WINDOWS\\Fonts\\LeawoodStd-Book.otf