Page 1 of 1

srt subtitle font

PostPosted: Wed Mar 29, 2017 12:53 pm
by thingy
I have a problem with srt fonts on renderers that does not support srt so serviio reencodes the file.
The subtitles are displayed but the font is terrible (ie unreadable).

Is there a way to config Serviio to force ffmpeg to use for example Arial font?

The same font appears both on Panasonic tv and Kodi on windows. So don't say it's the renderer's font.

Re: srt subtitle font

PostPosted: Wed Mar 29, 2017 6:57 pm
by zip
is it embedded ASS subtitle? that might include / specify a font I think.

Re: srt subtitle font

PostPosted: Fri Mar 31, 2017 11:47 am
by thingy
No.
It's a mp4 file and it has an internal tx3g subtitle and an external .srt-file. And according to documentation Serviio should opt for external subtitle files. Which it seems to do.

It's the external .srt file that is displayed badly.
Since if I remove that,
then, at least, Kodi displays the muxed subtitle file with a readable font.

no .ass files for that media.

Re: srt subtitle font

PostPosted: Sun Oct 22, 2017 9:54 am
by thingy
I finally found the culprit, it was a font file on my windows system.

The Windows Unicode BMP (UCS-2) naming is correct.
But for the "Macintosh Roman" and "Unicode 2.0 and onwards, BMP" naming it's name is Arial, Regular, Postscript name: ArialMT.
So in the windows font folder (serviio runs on Windows 2008 Server), It was named : Ονειροπαρμένη82. Which made it difficult to find.

So this is not a Serviio error per see, but a problem in how the api, Serviio uses to, look up fonts by name.
I'm not sure if there is a way to specify that font names should check the Windows Unicode BMP name on windows, and perhabs the other namings on macintosh and linux resp.
Since windows won't display the Macintosh and Unicode 2.0 names in the font folder, but obviously it's what Java? uses to find fonts.

Should have attached the font file, but ttf isn't allowed.
You can download it here:
http://www.starenterprise.se/font/ANA-O ... MENI82.TTF

Re: srt subtitle font

PostPosted: Mon Oct 23, 2017 8:24 am
by zip
There is a fonts folder under Serviio's config folder. It's where the fonts are configured. It contains a set of rules (in conf.d folder) which are trying to find the matching font in sequence.