惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
腾讯CDC
G
Google Developers Blog
宝玉的分享
宝玉的分享
I
InfoQ
F
Fortinet All Blogs
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
IT之家
IT之家
D
DataBreaches.Net
Martin Fowler
Martin Fowler
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments
persian/arabic font issues with mpv and ffmpeg when ttf-f...
rezad · 2026-06-18 · via Arch Linux Forums

I noticed recently that mpv shows arabic/persian subtitles in a very buggy way.
the letters are disjoined (persian/arabic is like cursive english, its letters are connected to other letters in a word)
also some of letters are shown bigger than other but the whole subtitles is very small (had to use a bigger size font setting in mpv for it to be seen)

the english words are shown correctly.

It was not like this before.
I checked and it seems to be an issue when using noto-fonts .
when I removed noto-fonts (forced removed them as they are dependancies of a lot of GUI apps) then issue is gone as mpv seems to use the next font for it (vazirmatn). also using gnu-free-fonts instead of noto-fonts doesn't have this issue either.

vlc doesn't have this issue.

the noto-fonts had an update but downgrading to that version doesn't fix this issue.

also I think the issue is more than just mpv.
today I tried to use ffmpeg to burn a subtitle in a video.
I got the same issue with default font used when noto is used. (subtitle is shown wrong just like mpv)

and I get this in ffmpeg output:

[Parsed_subtitles_0 @ 0x7fa134003dc0] fontselect: (Arial, 400, 0) -> /usr/share/fonts/noto/NotoSans-Regular.ttf, 0, NotoSans-Regular
[Parsed_subtitles_0 @ 0x7fa134003dc0] Glyph 0x62C not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x7fa134003dc0] fontselect: (Arial, 400, 0) -> /usr/share/fonts/noto/NotoSansMath-Regular.ttf, 0, NotoSansMath-Regular
[Parsed_subtitles_0 @ 0x7fa134003dc0] Glyph 0x6CC not found, selecting one more font for (Arial, 400, 0)
[Parsed_subtitles_0 @ 0x7fa134003dc0] fontselect: (Arial, 400, 0) -> /usr/share/fonts/noto/NotoSansArabic-Regular.ttf, 0, NotoSansArabic-Regular

but when I use

ffmpeg -i 1.mkv -vf "subtitles=1.srt:force_style=FontName=Vazirmatn" -c:v libx264 -crf 20 -c:a aac -b:a 192k output.mp4

I get

[Parsed_subtitles_0 @ 0x7f5aa0003e00] fontselect: (Vazirmatn, 400, 0) -> /usr/share/fonts/vazirmatn/Vazirmatn-Regular.ttf, 0, Vazirmatn-Regular

then subtitle is correctly shown.

images for issue
first one is correct the other two are bad

602748952-697a9a78-2cde-40bf-8e77-171e0d40d104.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODE3Njc4ODcsIm5iZiI6MTc4MTc2NzU4NywicGF0aCI6Ii83NTIzMTY0LzYwMjc0ODk1Mi02OTdhOWE3OC0yY2RlLTQwYmYtOGU3Ny0xNzFlMGQ0MGQxMDQuanBnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDYxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA2MThUMDcyNjI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWJkZDE0NzhiOGVhYjE1OGY1N2Q1OGM1OTkxMTFlZWFjZDRiZmJlZTEwMmU3ODJlNmFhZDdjMzY3NTdmOTIyZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGanBlZyJ9.q_brjjlqF5O8c-sjTGMPooVbvygksV51AgFuhumFJj0

602749951-e65e3639-cfa7-4f02-93ff-37aeecfd4d26.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiY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