News:

--

Main Menu

Font Problem (mac os mojave 2.7.3)

Started by sara88, June 24, 2019, 07:06:25 AM

Previous topic - Next topic

sara88

Hi there.

I'm using avidemux to encode my subtitles to a video but there are fonts that don't shown correctly after being encoded. All fonts (korean) that I used have been installed correctly on my mac.

Is there anyone who knows how to solve this problem?

Thank you in advance.

eumagga0x2a

Upon a quick test, specifying Arial in a subtitles file with 한글 subs results in AppleSDGothicNeo being used, glyphs don't overlap or collide. To assess the situation, please...

a) ...provide the subtitle file used (or just make a minimal one allowing to reproduce the issue)

and

b) ...launch Avidemux from Terminal

/Applications/Avidemux_2.7.3.app/Contents/MacOS/Avidemux2.7 > ~/Desktop/admlog.txt

reproduce the problem (you don't need to really encode anything, just use the filter preview mode in the main window and play a small portion of video with subtitles), open "admlog.txt" created on your desktop by the above command, look for and copy into your reply lines beginning with "[ass]" like

[ass] fontselect: (Arial, 400, 0) -> /Library/Fonts/Arial.ttf, -1, ArialMT
[ass] Glyph 0xC5B4 not found, selecting one more font for (Arial, 400, 0)
[ass] fontselect: (Arial, 400, 0) -> /System/Library/Fonts/AppleSDGothicNeo.ttc, -1, AppleSDGothicNeo-Regular


In any case, the solution would probably include tweaking the styles in the subtitles file to eliminate glyphs overlap.

sara88

This is the subtitle file that I used. This is the simple version of the sub file. I didn't include the one with the aegisub effects coz the size is too big to attach here.

sara88

Also this is what happened when I launched avidemux using terminal. I don't understand why it says 'cannot find fonts' coz the fonts are installed in my mac and I can find it in my font book.

eumagga0x2a

Oops, thanks, I missed that libass outputs its messages on stderr, not on stdout, so the command to include these in admlog.txt should have been

/Applications/Avidemux_2.7.3.app/Contents/MacOS/Avidemux2.7 > ~/Desktop/admlog.txt 2>&1

QuoteI didn't include the one with the aegisub effects coz the size is too big to attach here.

FYI: Compressing (gz, zip or 7z) text files like .ass before attaching would allow it to fit many times into the size limit.

But this doesn't matter in this case now.

QuoteI don't understand why it says 'cannot find fonts' coz the fonts are installed in my mac and I can find it in my font book.

Maybe Avidemux' fontconfig doesn't know about the location these fonts are installed. It looks for fonts in the directories listed at cmake/osx/fonts.conf:27 as well as in ~/.fonts. Are Typo_Papyrus, Chalkboard SE, drfont_daraehand and Typo_Deco installed in one of these directories? If not, you could try to symlink the *.ttf files into ~/.fonts.

sara88

The problem has been resolved. Thank you very much. It is exactly as you said. Avidemux doesn't know where the fonts are installed since they're in different folder not in the mac font directory. THANK YOU VERY MUCH for your help. Really appreciate it. :)

eumagga0x2a

Great, could you please specify the location? If it is not something completely unusual, we could probably add it to the list.

sara88

At first, I put all the newly downloaded fonts in the new folder in desktop. That's why avidemux couldn't detect the fonts used. So I just moved the newly downloaded fonts from the new folder to mac font folder. In my case, after I cut the font files from the new folder, I clicked

OSX(or whatever your macbook name is) -> Macintosh HD -> Library -> Fonts (Just paste/move your fonts - tff files, into this folder)

and tadaaa my problem is solved.  ;)

eumagga0x2a

Thank you, should be fixed by [osx] Add user font folder to the font directory list.

I assume that

QuoteAll fonts (korean) that I used have been installed correctly on my mac.

means that the *.ttf files have been automatically copied into ~/Library/Fonts which was missing in our search list.

maichan116

Thank you for this thread! I had a similar issue for a while now and I was finally able to fix it.

eumagga0x2a

If your solution was moving or copying fonts, could you please undo it and verify that the fix, now available in the 190701 nightly https://avidemux.org/nightly/osx_mojave/ works?