LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-06-2022, 04:23 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
Debian Font rendering


has anyone managed to get fonts looking ok in Debian with antialiasing OFF?
I need it for LXQT, Debian 11.3 stable, firefox, chromium, gtk, qt
 
Old 05-06-2022, 04:29 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably: https://forums.linuxmint.com/viewtopic.php?t=285451
 
Old 05-06-2022, 05:18 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
thanks.
most free fonts seem to have bad hinting, I'll try bitmap fonts.

edit: bitmap courier looks nice for system, in theory it should be a bit faster.
but vector fonts are needed for most programs.

I set resolution to 86DPI for Samsung971P, not sure if that is correct.

Last edited by qrange; 05-06-2022 at 05:25 AM.
 
Old 05-07-2022, 01:20 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
May I enquire why you think you want antialiasing OFF for all fonts?
It won't give you a performance boost.

That said, various bitmap fonts exist and fontconfig can be told to not scale them.
Font size matters - you can only choose such sizes that the font is designed for.

On my distro, the traditional formats are being replaced by OTB fonts.

PS: In some cases dpi matters too. Find out the right DPI for your monitor. https://dt.iki.fi/fontconfig-2

Last edited by ondoho; 05-07-2022 at 01:22 AM.
 
Old 05-08-2022, 02:35 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
Because that's the way I like it, crisp and clear. I could ask you the same question BTW. On old computers (Amiga) there was no text antialiasing, so I got used to jagged lines. I might use it when my monitor has 300DPI or similar but it probably won't matter then. High contrast makes text easier to read, I think.

Fonts on Linux are known problem, and its mind boggling that its not yet solved. The relevant patents expired long ago.

Last edited by qrange; 05-08-2022 at 02:37 AM.
 
Old 05-08-2022, 08:25 AM   #6
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 83
Quote:
Originally Posted by pan64 View Post
I see.
The issue is similar to 3D graphics.

If the OP wants antialiasing off, then I think you need a font file where someone has generated each character by hand (bitmap fonts) and I'm guessing they need to do this for the size 8 to 15 or so. It would have to be for low DPI monitors.

Good news:
MS has already done the job for us.
I have installed the MS fonts on my system.
I turned off antialiasing and I use Arial.

It looks exactly like it does on Windows.
 
Old 05-08-2022, 01:05 PM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,804
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Sweet spots for fonts are multiples of 4, with 12 & 24 being better than 4 or 8. Also, scalable fonts are historically designed for 96 DPI, and suffer drastically as DPI falls, which means they improve immensely as DPI rises. Depending on your eyes, screen distance, and physical screen density & composition, the reasons for fonts manipulation are mostly gone by somewhere between 120 & 144 DPI. To illustrate, @96DPI a 12pt font has a nominal glyph pixel count of 72, while @120DPI, +25%, it has risen to 200. 6X12 vs. 10x12. @144, +50%, it has risen to 12x24 & 288. If you really want great fonts, get the screen density up, logically, physically, or both.
 
Old 05-09-2022, 12:08 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by qrange View Post
Because that's the way I like it, crisp and clear. I could ask you the same question BTW. On old computers (Amiga) there was no text antialiasing, so I got used to jagged lines. I might use it when my monitor has 300DPI or similar but it probably won't matter then. High contrast makes text easier to read, I think.

Fonts on Linux are known problem, and its mind boggling that its not yet solved. The relevant patents expired long ago.
No need to get testy, the question was technically justified.

Fonts on Linux might have been a known problem, but it has been solved. I have no problems at all, and my monitor isn't hi-res either.
Usually it's just a question of installing the right fonts.

Anyhow, antialiasing OFF:
Create a file ~/.config/fontconfig/fonts.conf that contains at least this:
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<!-- .... -->
<fontconfig>
    <match target="font">
        <edit mode="assign" name="antialias">
            <bool>false</bool>
        </edit>
    </match>
<!-- .... -->
</fontconfig>
Proof: see attachment 1.

Apart from that, choose the right font and the right size.

It's also possible to set bitmap fonts for your UI, see attachment 2.
Attached Thumbnails
Click image for larger version

Name:	maim_2022-05-09_08-03-59.png
Views:	29
Size:	1.9 KB
ID:	38875   Click image for larger version

Name:	maim_2022-05-09_08-07-13.png
Views:	26
Size:	1.9 KB
ID:	38876  
 
  


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
Font rendering is ugly. Which font and settings to use? rempas Linux - Desktop 19 01-06-2022 03:26 PM
[SOLVED] Debian's font rendering mintvx Debian 14 09-29-2014 04:10 AM
direct rendering: Yes :: (but applications say direct rendering is not possible?) AbsoluteMonkey Fedora 0 12-16-2008 09:44 PM
font rendering in linux kaanmert Linux - General 3 12-08-2003 08:13 AM
Font rendering (again) fasta Slackware 5 11-12-2003 11:10 AM

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

All times are GMT -5. The time now is 10:39 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
Open Source Consulting | Domain Registration