View previous topic :: View next topic |
Author |
Message |
pezed n00b
Joined: 16 Oct 2003 Posts: 31
|
Posted: Tue Mar 17, 2009 2:13 am Post subject: |
|
|
Just wanted to say thanks for keeping the ubuntu patches alive. In my opinion they are far superior to the cleartype setup. Keep up the good work!! (Please!!) |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Wed Mar 18, 2009 1:10 pm Post subject: |
|
|
If someone is using KDE and has problems with qt4 and openoffice not respecting fontconfig settings, here's the solution: go to Control Center -> Appereance & Themes -> Colors and disable option "Apply colors to non-KDE applications". That resolved the issue for me. _________________ ncmpcpp - featureful ncurses based MPD client inspired by ncmpc |
|
Back to top |
|
|
ocin Guru
Joined: 01 Jan 2006 Posts: 500
|
Posted: Wed Mar 18, 2009 1:20 pm Post subject: |
|
|
just wanted to say that freetype-2.3.9 is in ::devnull now :) |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Tue Mar 24, 2009 1:48 pm Post subject: |
|
|
Need a little help with configuration. Two things are looking ugly:
1. Courier font i Opera's [10alpha, shared qt3, amd64] <pre> : http://img11.imageshack.us/img11/4793/screenshot2009032414351.png
2. Java applications, JDownloader on screenshot: http://img10.imageshack.us/img10/3636/screenshot2009032414353.png . Looks the same with sun-jdk and icedtea6-bin.
Code: | $ eselect fontconfig list
Available fontconfig .conf files ( * is enabled ):
[1] 10-antialias.conf *
[2] 10-autohint.conf
[3] 10-hinting.conf *
[4] 10-hinting-full.conf *
[5] 10-hinting-medium.conf *
[6] 10-hinting-slight.conf
[7] 10-no-sub-pixel.conf *
[8] 10-sub-pixel-bgr.conf
[9] 10-sub-pixel-rgb.conf *
[10] 10-sub-pixel-vbgr.conf
[11] 10-sub-pixel-vrgb.conf
[12] 10-unhinted.conf
[13] 20-fix-globaladvance.conf *
[14] 20-unhint-small-dejavu-sans.conf
[15] 20-unhint-small-dejavu-sans-mono.conf
[16] 20-unhint-small-dejavu-serif.conf
[17] 20-unhint-small-vera.conf
[18] 25-unhint-nonlatin.conf
[19] 30-metric-aliases.conf *
[20] 30-urw-aliases.conf *
[21] 40-nonlatin.conf *
[22] 45-latin.conf *
[23] 49-sansserif.conf *
[24] 50-user.conf *
[25] 51-local.conf *
[26] 57-dejavu-sans.conf
[27] 57-dejavu-sans-mono.conf
[28] 57-dejavu-serif.conf
[29] 60-liberation.conf *
[30] 65-fonts-persian.conf *
[31] 65-khmer.conf
[32] 65-nonlatin.conf
[33] 69-unifont.conf *
[34] 70-no-bitmaps.conf *
[35] 70-yes-bitmaps.conf
[36] 80-delicious.conf *
[37] 90-synthetic.conf *
$ cat /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include ignore_missing="yes">/home/manwe/.fonts/vistafonts.conf</include>
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<edit name="autohint" mode="assign"><bool>false</bool></edit>
</match>
<match target="font">
<edit name="hinting" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
</match>
<match target="font">
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
</match>
<selectfont>
<rejectfont><pattern><patelt name="fontformat"><string>Type 1</string></patelt></pattern></rejectfont>
</selectfont>
</fontconfig>
|
All programs in newest versions with cleartype enabled: cairo-1.8.6-r1, fontconfig-2.6.0-r2, freetype-2.3.9, libXft-2.1.13. In Opera Courier in <pre> is forced by forums' css, it should be replaced to Liberation Mono by 60-liberation.conf, but somehow isn't. |
|
Back to top |
|
|
mwhitlock Tux's lil' helper
Joined: 07 Aug 2006 Posts: 87 Location: New Hampshire, USA
|
Posted: Tue Mar 24, 2009 2:28 pm Post subject: |
|
|
manwe_ wrote: | Java applications |
The JFC (a.k.a. "Swing") does not use the native system's font rasterization facilities. This is why it looks horrible on both Windows and Linux. However, Java on Mac OS X uses OS X's typography support and looks great, but that's because it's Apple's implementation of Swing, not Sun's. For what it's worth, you can get some rather crappy subpixel rendering of fonts in Swing by upgrading to Java 6. |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Tue Mar 24, 2009 2:41 pm Post subject: |
|
|
I do have sun-jdk-1.6.0, and it didn't look that crappy before. I wasn't using jdownloader for a while, but kept system up to date. Than few days ago runned it again and saw this. Something in the system has changed in those previous weeks, but few weeks is a hell lot of emerges so finding cause without any clues is impossible.
-- update:
Wine looks the same: http://img528.imageshack.us/img528/1672/screenshot2009032415444.png and also throws:
Code: | Fontconfig warning: "local.conf", line 27: invalid constant used : lcddefault |
|
|
Back to top |
|
|
Evilguru Guru
Joined: 16 Aug 2005 Posts: 390 Location: England
|
Posted: Wed Mar 25, 2009 4:22 pm Post subject: |
|
|
There is a command line flag you can pass to Java to change the text AA methods. I can't remember it off hand, although it doesn't improve the rendering quality much.
Sun seem to care very little about platform integration when it comes to Swing -- which is why after 6 years it still looks poor. One day, however, they might start to use the system settings for AA and hinting, one day...
Regards, Freddie. |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Thu Mar 26, 2009 3:11 am Post subject: |
|
|
OK, the hell with java and wine (for now), but what with Opera? It used to be fine, something has changed and now Courier font looks like this: http://img11.imageshack.us/img11/4793/screenshot2009032414351.png . It's not present in the system (/usr/share/fonts/, gtk-chtheme, qtconfig, openoffice writer) but somehow is available in Opera's font list as "Courier [bitstream]" and used when specified in CSS.
Code: | $ opera -debugfont
...
Core X font family added: Charter [Bitstream]
Core X font family added: Courier [Bitstream]
Core X font family added: Terminus [Xos4]
... |
-- update:
xfontsel also shows -bitstream-courier-*. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Fri Mar 27, 2009 12:29 am Post subject: |
|
|
Do you have 70-no-bitmaps.conf enabled & 70-yes-bitmaps.conf disabled? |
|
Back to top |
|
|
manwe_ l33t
Joined: 01 Feb 2006 Posts: 632 Location: Kraków/Cracow, Poland
|
Posted: Fri Mar 27, 2009 3:09 pm Post subject: |
|
|
Code: | [34] 70-no-bitmaps.conf *
[35] 70-yes-bitmaps.conf |
-- update:
Fixed Have no idea why, I was just playing with configs, checking if everything is ok and today -bitstream-* fonts vanished. Java & wine are still ugly, but at least Opera is ok. |
|
Back to top |
|
|
Hell-Razor Guru
Joined: 10 Jun 2004 Posts: 458
|
Posted: Tue Apr 21, 2009 10:13 am Post subject: |
|
|
Hey guys, I have been looking through all these threads and have not been able to find a how-to to get this working. Could somebody please re-post it? looking through 37 pages of forums is kind of difficult. _________________ Don't ever tell anybody anything. If you do, you start missing everybody. |
|
Back to top |
|
|
ocin Guru
Joined: 01 Jan 2006 Posts: 500
|
|
Back to top |
|
|
ssmaxss Apprentice
Joined: 28 Jun 2005 Posts: 160 Location: Moscow, Russia.
|
Posted: Wed May 06, 2009 1:33 pm Post subject: |
|
|
there is freetype-2.3.9-r1 in portage that is newer than freetype-2.3.9 from devnull overlay, so it wants to install. Maybe someone would bump overlay version to 2.3.9-r1 too (afaik it should include some security fix) |
|
Back to top |
|
|
ocin Guru
Joined: 01 Jan 2006 Posts: 500
|
Posted: Fri May 08, 2009 5:40 pm Post subject: |
|
|
ssmaxss wrote: | there is freetype-2.3.9-r1 in portage that is newer than freetype-2.3.9 from devnull overlay, so it wants to install. Maybe someone would bump overlay version to 2.3.9-r1 too (afaik it should include some security fix) |
done. |
|
Back to top |
|
|
ssmaxss Apprentice
Joined: 28 Jun 2005 Posts: 160 Location: Moscow, Russia.
|
Posted: Fri May 08, 2009 5:41 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Fri May 08, 2009 9:30 pm Post subject: |
|
|
Didn't this start out with the lcd-filtering overley? Has lcd-filtering merged into the devnull overlay? Or are there now two overlays for fonts?
I ask since the lcd-filtering overley DOESN'T contain the new freetype-2.3.9-r1. |
|
Back to top |
|
|
iamboredr n00b
Joined: 09 May 2009 Posts: 10
|
Posted: Sat May 09, 2009 7:06 pm Post subject: |
|
|
wow thanks alot it helps alot |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sat May 09, 2009 11:30 pm Post subject: |
|
|
overkll wrote: | Didn't this start out with the lcd-filtering overley? Has lcd-filtering merged into the devnull overlay? Or are there now two overlays for fonts?
I ask since the lcd-filtering overley DOESN'T contain the new freetype-2.3.9-r1. |
The lcd-filtering overlay still exists because I use it myself, but the "official" overlay for fonts in devnull. |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Sun May 10, 2009 5:23 pm Post subject: |
|
|
Thanks bi3l, or should I say merci beaucoup?
I just synced the lcd-filtering overlay and freetype-2.3.9-r1 has been added. |
|
Back to top |
|
|
PinguinoLoco n00b
Joined: 04 Feb 2009 Posts: 21
|
Posted: Fri Jun 19, 2009 1:34 pm Post subject: |
|
|
There is a post in the KDE forums of a person who has written patches to enable subpixel hinting in Okular. My experience in patching is limited and I can't get them to apply. Maybe some of the experts here could take a look at it. The screenshot the author of the patches provides looks great, I wish I could read PDF files like that!
Last edited by PinguinoLoco on Fri Jun 19, 2009 2:25 pm; edited 1 time in total |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Fri Jun 19, 2009 1:54 pm Post subject: |
|
|
There have been such patches for a while but they are all quite ugly because they don't respect any of the user settings: they hardcode slight subpixel hinting and rgb order. |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sun Jun 21, 2009 9:39 am Post subject: |
|
|
I've added an ebuild for poppler-glib in the ldc-filtering overlay. With the hinting flag, it should provide hinting to the cairo backend according to your settings. PDF readers using poppler-glib (such as evince) should then have hinting enabled.
Please, let me know if it works. |
|
Back to top |
|
|
PinguinoLoco n00b
Joined: 04 Feb 2009 Posts: 21
|
Posted: Sun Jun 21, 2009 4:25 pm Post subject: |
|
|
Thanks bi3l, it worked fine for me. There is subpixel hinting in evince and changing the hinting style in .fonts.conf did change the appearance of the PDF. Works OK for me with slight hinting (letters are a bit heavier than with Adobe Reader, but I like them) and for other hinting styles there are artifacts in the rendering (wrong size of some letters).
Would it be very difficult to have a similar patch for poppler-qt4 and okular? |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sun Jun 21, 2009 4:30 pm Post subject: |
|
|
PinguinoLoco wrote: | Would it be very difficult to have a similar patch for poppler-qt4 and okular? |
It would be very easy if okular used the cairo backend. But I don't think it does. |
|
Back to top |
|
|
PinguinoLoco n00b
Joined: 04 Feb 2009 Posts: 21
|
Posted: Sun Jun 21, 2009 4:41 pm Post subject: |
|
|
The patch in the KDE forums I posted above is supposed to do that, make okular use the cairo backend and hardcode slight hinting, but sadly I wasn't able to apply it. |
|
Back to top |
|
|
|