LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-12-2011, 06:27 AM   #1
RASCRanasingha
LQ Newbie
 
Registered: Mar 2011
Location: Talpittiya, Vaadduva, Shri Langka
Distribution: Kubuntu
Posts: 8

Rep: Reputation: 1
Smile Fonts - Is Specifying A Font For A Specific Language Or Script Possible?


Hello There!! Thanks For Viewing This Post!! Well Appreciated

As a bilingual user, I have a lot of things that someone like that has to have
like a lot of UNIcode fonts of the languages I use and keyboard layouts... etc... etc...

My question is really simple (though the answer may not
):

Is it possible to specify a specific font for a specific language?

For
example:
I have about four different looking Singhalese fonts on my system:
1. LKLUG
2. Bashitha
3. Malithi
4. another one... (awkward)

right now my system uses LKLUG, but I'd like to use Bashitha since it's more easy to read. How do I do this? Things like setting the system wide font in SystemSettings or other ways is not what I'm looking for though... my System font is DejaVu Sans, and I want the System to use Bashitha ONLY for the Singhalese text and DejaVu Sans for the rest...

I tried modifying the ~/.fonts.conf file... Here's the part I added...

Code:
 
<match target="pattern">
   <test qual="any" name="family">
      <string>LKLUG</string>
   </test>
   <edit name="family" mode="assign">
      <string>BashitaComplex</string>
   </edit>
</match>
But somehow it doesn't work (most probably due to stupidity )

If it's DE dependent, I'm using KDE 4.4.5


Thanks
for any help and criticism
 
Old 03-12-2011, 03:53 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Here is a tutorial which may help you: http://shareaza.sourceforge.net/?id=skindocs/fonts

It seems that the language has to be specified for each font. If the language name is omitted, the font named in the configuration will be global.

Here is an excerpt from the tutorial:
Quote:
language - The specific language that this font specification will be used on. Not setting this attributes will make this specification apply to all languages. The language code and not the language name should be used, for example "ja" for Japanese.
 
Old 03-13-2011, 12:52 AM   #3
RASCRanasingha
LQ Newbie
 
Registered: Mar 2011
Location: Talpittiya, Vaadduva, Shri Langka
Distribution: Kubuntu
Posts: 8

Original Poster
Rep: Reputation: 1
Thanks For Viewing <<bigrigdriver>>!!!

Although the turorial was not for LinUX , the lang property seems to do what I want, but another problem arises, when I use this variable some OTHER language fonts change for example Cryllic characters becams FullWidth (and a little ugly), Urdu characters changed to Paktype... This should'nt happen... Should it?

Thanks For Helping
 
Old 03-13-2011, 06:47 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
I don't know enough about how the font selection works to be able to answer your question.

It seems to me, on reviewing the link I gave you earlier, that you can add additional lines to the .fonts.conf file to specify the font to use for each language.

That's the best advice I can offer.
 
  


Reply

Tags
fonts, languages, scripts


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to install my (regional language ) font? kingston Linux - Newbie 4 02-03-2010 05:10 AM
How do I execute vendor specific SMART commands with c language? biospeter Programming 2 07-19-2008 07:39 PM
How can I change the key-map in a specific keyboard language? sharafat Linux - Software 3 03-10-2007 09:39 PM
Non ASCII (language specific) characters in filenames? milicic.marko Linux - General 2 03-19-2005 05:15 PM
Need help finding a specific font nixdisciple Linux - General 0 07-07-2002 07:38 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration