LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2019, 10:55 AM   #1
david von tamar
LQ Newbie
 
Registered: Sep 2018
Location: Israel
Distribution: Debian
Posts: 13

Rep: Reputation: Disabled
How to prevent font-conf from using a specific font for a certain language/charset?


I'm trying to prevent font-conf from using my default font (FreeSerif) for Hebrew characters.

Except for the Hebrew characters, I'd like FreeSerif to be used as my default font for all characters.

I read this manual for font-conf, and also the following questions/articles:
What I've tried so far, and it didn't work:
  • Using the lang property to prepend my font of preference for Hebrew. It didn't work as intended, because if a sentence started with a non-Hebrew character then FreeSerif would be selected over the entire paragraph, despite that it may contain Hebrew characters.
  • Removing the Hebrew characters directly from FreeSerif via fontforge. It didn't work quite well because my new version of FreeSerif had some weird spacing artifacts between the characters, I had no idea why and I just gave up.
  • Removing the Hebrew charset range (U+0591 to U+05F4) from FreeSerif via font-conf's <match> pattern. It didn't work at all because font-conf says that Expression doesn't take any effects for delete and delete_all for properties like lang and charset.
 
Old 06-17-2019, 07:09 AM   #2
david von tamar
LQ Newbie
 
Registered: Sep 2018
Location: Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Sadly there's no option to disable a range of character from a font on fontconfig.
I had edit FreeSerif directly and remove the Hebrew characters in order to force fontconfig to use my fall-back font for Hebrew.
 
  


Reply

Tags
font, fontconfig


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent firefox from using foreign language dictionaries? johnsfine Linux - Software 7 04-14-2014 07:47 AM
[SOLVED] Using Squid to restrict access during certain hours, but only to certain sites wolverene13 Linux - Security 5 07-11-2012 09:11 PM
Fonts - Is Specifying A Font For A Specific Language Or Script Possible? RASCRanasingha Linux - General 3 03-13-2011 07:47 PM
console font and charset issue cosma975 Fedora 0 12-12-2010 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration