LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-22-2013, 11:28 AM   #1
narke
Member
 
Registered: Apr 2010
Posts: 197

Rep: Reputation: 5
What 'monospace' point to?


Hi,

In a fresh installed slack box (14.0 in my case), I see a lot of GUI application (such as KDE's Konsole) is using a font named 'Monospace'. Checked with fc-list, I did not find the name, so I think this is a font-config alias. Then I read my /etc/fonts/fonts.conf, but still not figure out the answer. Can anyone please tell me what's the tricky? Thanks.
 
Old 07-22-2013, 11:54 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,236

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
It's in /etc/conf.d/60-latin.conf
 
Old 07-22-2013, 11:56 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
http://en.wikipedia.org/wiki/Monospaced_font
 
Old 07-23-2013, 12:37 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,461
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Under recent versions of Slackware, "Monospace" "Serif" and "Sans" all point to the appropriate fonts from the DeJaVu font pack:

http://dejavu-fonts.org/wiki/Main_Page

Last edited by rkelsen; 07-23-2013 at 12:40 AM.
 
Old 07-23-2013, 03:05 AM   #5
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 134Reputation: 134
I'd like to add that you can check your system's default monospace (AKA fixed) font with:

Code:
fc-match monospace
You can also adjust the command to report your "serif" or "sans-serif" font.
 
2 members found this post helpful.
Old 07-23-2013, 08:49 AM   #6
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by kabamaru View Post
I'd like to add that you can check your system's default monospace (AKA fixed) font with:

Code:
fc-match monospace
You can also adjust the command to report your "serif" or "sans-serif" font.
That's fantastic! Thanks for showing me the command, really useful. Then, how about Chinese (or other none Latin) fonts? When I use an editor to open a file, if the file has some Chinese font in it, then these characters also get displayed. It's also similar when I open firefox to see some Englis and Chinese web pages. What I want to know it, how these Chinese characters get displayed? Obviously, they are not rendered with the same fonts as those English characters. How can I figure out the actual font names or even change it?

Thanks in advance.
 
Old 07-23-2013, 09:08 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by narke View Post
What I want to know it, how these Chinese characters get displayed? Obviously, they are not rendered with the same fonts as those English characters.
Basically, a font is nothing but a collection of glyphs, so one font can gather glyphs used to represent latin and non-latin characters. This is where Unicode comes handy.
 
Old 07-23-2013, 09:16 AM   #8
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Didier Spaier View Post
Basically, a font is nothing but a collection of glyphs, so one font can gather glyphs used to represent latin and non-latin characters. This is where Unicode comes handy.
Did you mean, in a whole file if there is only one Chinese character, the the whole file in a GUI editor will be rendered with some kind of Chinese fonts but not the nice DejaVu family?
 
Old 07-23-2013, 09:33 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by narke View Post
Did you mean, in a whole file if there is only one Chinese character, the the whole file in a GUI editor will be rendered with some kind of Chinese fonts but not the nice DejaVu family?
I don't know what happens in this specific case but generally speaking there is no chinese of latin font but chinese or latin characters visually displayed through a drawing, which is called a glyph.

Every font, being a collection of glyphs has specific characteristics, among which:
  • the design style of the glyphs
  • the list of included characters
  • for each characters, the variants available (e.g. regular, bold, italic, and sizes)
In the specific case of DejaVu fonts, according to this page some non latin characters are available but no Chinese (ideographs) ones.

What I do not know is this: can a specific software use different fonts to display all characters of a text, in case it can't find one single font able to display all of them?

My guess (but this is only a guess) is that depends of the software(s) used to select the font(s) and make the rendering. Maybe someone more knowledgeable than me will give you a more accurate answer.

Last edited by Didier Spaier; 07-23-2013 at 03:51 PM.
 
1 members found this post helpful.
  


Reply



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 Implement Low Speed Point-to-Point Data Link via Linux networking? Paul_N Linux - Networking 2 06-30-2013 03:47 PM
xterm: cannot match normal font "Monospace" on xterm 282, X11R7.7 ebol4 Linux - Software 2 10-07-2012 08:59 PM
LXer: Set up a SSH-based point to point connection LXer Syndicated Linux News 0 11-30-2008 09:50 PM
telnet not work in Point to Point connected FC6 boxes techteacher Linux - Networking 4 05-06-2007 09:50 AM
Terminus-font vs Monospace vs Vera sans mono macondo Debian 2 05-16-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:23 PM.

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
Open Source Consulting | Domain Registration