Skip to content

add pref for content font

Xidorn Quan requested to merge upsuper/rhythmbox:font-pref into master

The problem arises from the issue that in my library, which mostly consists of Japanese songs, the Japanese titles are not properly aligned with Latin content.

As can be seen from the following screenshot, all Japanese text are placed slightly lower than pure-Latin text: screenshot-rhythmbox

This is because I'm using a English system, and the default UI font doesn't have glyphs for Japanese characters, and thus font fallback happens, and different cells end up using different font, causing them not aligned properly.

It's a common issue in multilingual environment, especially when your UI language differs from your content language. Surely this can be solved by setting a different UI font on the system level, but I'd argue that has many other undesired effect in many cases.

As it is very common to use different fonts for UI and for content, I think the best approach here would be to allow user setting the font for their library content, rather than force using the default UI font there.

There might be other places may use the content font as well, e.g. properties dialog, but those don't have as significant deficit as this one, and can be added separately. Also I think it would be better to have some feedback first before I try to dig into it further.

With these changes and a proper Japanese font set, you can see that everything looks much nicer: screenshot-rhythmbox2

Edited by Xidorn Quan

Merge request reports