Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am wondering how a system knows which font should be used for an output. E.g. recently I was setting up my Debian for Japanese support, so first: installed Japanese locale, then a package with fonts, rebooted - and whola! - the system is in Japanese now. But I would not get that without installing the specific fonts. How does the system know that a particular font should be used for particular language/locale? Thank you.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

The piece of software responsible for font selection in Linux is Fontconfig. It examines the properties of each font as well as its own configuration to determine which ones have glyphs that cover specific languages partially or fully and substitutes them as appropriate.

share|improve this answer
    
Thank you very much! –  BasicWolf Feb 7 '13 at 12:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.