View previous topic :: View next topic |
Author |
Message |
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sat May 29, 2010 12:31 pm Post subject: |
|
|
So, who wants to add additional patches to cairo etc., to add support for the sub-LCD rendering method? It looks interesting |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jun 10, 2010 3:47 pm Post subject: |
|
|
There's some nice free fonts available.
The best from that list are: PT Sans, CartoGothic Std, Sansation, Aller.
PT Sans and CartoGothic Std are so good, that I'm currently using a combination of them to replace Arial small-ish.
Edit: freetype 2.4.0 misses out most of the characters of CartoGothic Std - so it's to be avoided currently - weird
Edit2: freetype 2.4.1 fixes the missing characters in CartoGothic Std
Last edited by PaulBredbury on Sun Jul 18, 2010 6:13 am; edited 2 times in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Jul 13, 2010 7:46 pm Post subject: |
|
|
I noticed that NiLuJe prefers to patch default_filter, so I tried it myself. Here's an example to show the difference with the Gibson filter. It's "warmer" (some would say blurrier), and to my eyes it's an improvement
Easy alternative to the patch:
Code: | sed -i -e "s:0x10, 0x40, 0x70, 0x40, 0x10:0x1c, 0x38, 0x55, 0x38, 0x1c:" src/base/ftlcdfil.c |
Just recompile freetype2, then restart firefox to see the change.
Edit: More combinations on Infinality's forum.
This looks like a nice way to fine-tune "lcddefault". It would be interesting to see if people prefer other variations.
In other news, freetype 2.4.0 is out - the 2 Ubuntu patches "freetype-bytecode-interpreter" and "enable-full-bytecode-interpreter" can be dropped as no longer needed.
Last edited by PaulBredbury on Thu Oct 28, 2010 4:56 am; edited 1 time in total |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Jul 14, 2010 11:30 am Post subject: |
|
|
Infinality has a great freetype patch for sub- rather than whole-pixel hinting, which has better font spacing, as an alternative to Ubuntu's freetype LCD patch.
Here's a freetype-2.4.2-infinality-20100904.patch all-in-one patch I've made for freetype 2.4.2 - take a look at it, to see what it contains.
I still also recommend adding:
sed -i -e "s:0x10, 0x40, 0x70, 0x40, 0x10:0x1c, 0x38, 0x55, 0x38, 0x1c:" src/base/ftlcdfil.c
Old stuff:
freetype-2.4.2-infinality-20100903.patch
freetype-2.4.2-infinality-20100828.patch
Old patch
Here's an all-in-one patch I've made for freetype 2.4.0 (also works with freetype 2.4.1)
Edit: Got "hinting" vs "filtering" confused
Edit2: Here's the patch for freetype 2.4.2
Edit3: Added upstream patches.
Last edited by PaulBredbury on Sat Sep 04, 2010 10:42 am; edited 8 times in total |
|
Back to top |
|
|
sipingal n00b
Joined: 12 May 2008 Posts: 62 Location: China
|
Posted: Fri Jul 16, 2010 3:23 am Post subject: |
|
|
PaulBredbury wrote: | Infinality has a great freetype patch for sub- rather than whole-pixel filtering, which has better font spacing, as an alternative to Ubuntu's freetype LCD patch.
Here's an all-in-one patch I've made for freetype 2.4.0 |
That's great. Why not push to upstream? Seems it solve the memu delay problem as well.
Gilles said: I bit worried about speed in activities menu as well, it's damn slow on my Core2@2.2Ghz which I can't understand.
Details see here: http://blogs.gentoo.org/index.php/2009/10/25/gnome-2-28-1-is-there?blog=86 |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
KejPi Tux's lil' helper
Joined: 17 Jan 2004 Posts: 122 Location: Prague, Czech republic
|
Posted: Sun Jul 18, 2010 7:29 am Post subject: |
|
|
Hi, is there any plan to release freetype 2.4.0 with patches in devnull or should I switch to standard Gentoo version?
Thanks! _________________ hidentity.org |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sun Jul 18, 2010 8:08 am Post subject: |
|
|
freetype 2.4.0 is available in LCD filtering (note that I've changed the USE flags to match those of standard gentoo). _________________ OGMRip - LCD filtering (Wiki) |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Jul 18, 2010 12:13 pm Post subject: |
|
|
freetype 2.4.1 is out, and fixes the problem with missing characters in CartoGothic Std.
My Infinality patch for 2.4.0 works fine with 2.4.1, and it's better than Ubuntu's rendering. Although, annoyingly for me, it makes most of my Ubuntu-specific fontconfig rule-tweaking obsolete |
|
Back to top |
|
|
anshuljain n00b
Joined: 05 Apr 2010 Posts: 4 Location: Bangalore, India
|
Posted: Tue Jul 20, 2010 4:38 am Post subject: |
|
|
Seems like some more patches have started to filter in from Gentoo and Arch land Hello to my Gentoo friends (and especially to PaulBredbury). I've been following the patches from infinality ever since I came across this post (again) and tried it on openSUSE 11.3 w/ freetype 2.4.1. I must say that the patch is HIGHLY impressive as compared to the Ubuntu patches from Lucid/Maverick. I had those patches in my Opensuse Build Service repository briefly, but took them down as I had some questions on this patch.
I use a propeitary app called Labview and it does not use fontconfig for rendering. I'm not sure what it uses, but for Labview to pick up the fonts I need to run mkfontdir and mkfontscale to get the fonts.scale file in the ~/.fonts directory. I reverted back to the Ubuntu patches as the Infinality patches caused the fonts (Tahoma font is what I use for Labview) to be rendered completely horribly. It looks smudged and highly pixelated. With the Ubuntu patch, its back to its normal self. My question is- how can I ensure that the the Infinality patch will render Labview the same way as the Ubuntu patch does?
Some screenshot of my Labview app and the desktop with the Ubuntu patch:-
[IMG]http://thumbnails16.imagebam.com/8931/92c0af89306592.jpg[/IMG]
[IMG]http://thumbnails23.imagebam.com/8931/5652c289306191.jpg[/IMG]
I'd appreciate some assistance from the experts over here, so that I can take this knowledge and apply it to make life better on openSUSE
Regards (from openSUSE-land)
Anshul |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Jul 20, 2010 8:42 am Post subject: |
|
|
anshuljain wrote: | I'm not sure what it uses |
Maybe libXft? Try:
ldd /usr/bin/labview | grep -i xft |
|
Back to top |
|
|
anshuljain n00b
Joined: 05 Apr 2010 Posts: 4 Location: Bangalore, India
|
Posted: Wed Jul 21, 2010 2:21 am Post subject: |
|
|
Nope, its not Xft. I did this:-
anshul@sagarika /usr/local/bin $ ldd /usr/local/bin/labview
linux-gate.so.1 => (0x00706000)
libGL.so.1 => /usr/lib/mesa/libGL.so.1 (0x00c8a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0046f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00dc2000)
libstdc++.so.5 => not found
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x005a7000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00f30000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00110000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00129000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00bb8000)
libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00c1e000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00dd8000)
libdrm.so.2 => /lib/libdrm.so.2 (0x00283000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00d05000)
/lib/ld-linux.so.2 (0x00a78000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00e5e000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x0061f000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00edb000)
Any suggestions...? |
|
Back to top |
|
|
maruko n00b
Joined: 02 Jul 2005 Posts: 4 Location: Philippines
|
Posted: Sun Jul 25, 2010 8:33 am Post subject: |
|
|
I'm using PaulBredbury's fonts.conf and, so far, everything looks good.
Everything except Konsole.
Konsole is using Monospace, 9 with "Smooth fonts" enabled.
Code: |
$ fc-match monospace
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
|
Also, the cursor is not in the proper place. It looks like it has some gap after the last characters 't'. Take note that I didn't input any spaces in there and it's only "test" and not "test ". Switching to the font "Consolas" fixes this problem, but I'd like to use DejaVu Sans Mono...
*EDIT* Just selecting DejaVu Sans Mono instead of Monospace fixes the problem. |
|
Back to top |
|
|
ocin Guru
Joined: 01 Jan 2006 Posts: 500
|
Posted: Fri Jul 30, 2010 11:10 pm Post subject: |
|
|
Hey bi3l, I just came across this bug, can you look into it? Thanks in advance! |
|
Back to top |
|
|
GoofyX Tux's lil' helper
Joined: 23 Feb 2005 Posts: 84 Location: Greece
|
Posted: Sat Jul 31, 2010 7:12 pm Post subject: |
|
|
@bi3l, the lcd-filtering overlay is not displayed in the listing of layman's overlays. We have to manually add it ourselves and sync it? _________________ ... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain... |
|
Back to top |
|
|
grogi n00b
Joined: 03 Aug 2010 Posts: 2 Location: Cork, IE
|
Posted: Tue Aug 03, 2010 11:47 pm Post subject: |
|
|
I hate to do that - but with all that mess around font in Linux I cannot let it go.
PaulBredbury wrote: | Infinality has a great freetype patch for sub- rather than whole-pixel filtering, |
Hinting, not filtering. Hinting is a process of fitting the glyph into the pixel grid.
Quote: | which has better font spacing, as an alternative to Ubuntu's freetype LCD patch.
Here's an all-in-one patch I've made for freetype 2.4.0 (also works with freetype 2.4.1) |
Works! Awsome...
What patches are included?
Last edited by grogi on Tue Aug 03, 2010 11:50 pm; edited 1 time in total |
|
Back to top |
|
|
grogi n00b
Joined: 03 Aug 2010 Posts: 2 Location: Cork, IE
|
Posted: Tue Aug 03, 2010 11:49 pm Post subject: |
|
|
PaulBredbury wrote: | freetype 2.4.1 is out, and fixes the problem with missing characters in CartoGothic Std.
My Infinality patch for 2.4.0 works fine with 2.4.1, and it's better than Ubuntu's rendering. Although, annoyingly for me, it makes most of my Ubuntu-specific fontconfig rule-tweaking obsolete |
The BCI Hinting works really great with your patch - I don't have any problems I had before with AutoHinter, and the glyphs look sharp and natural. It looks that my .fonts.conf will be reduced to provide font substitutes while all autohint / hintstyle switches will go away |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Wed Aug 04, 2010 2:31 am Post subject: |
|
|
grogi wrote: | What patches are included? |
Look right at the top of the patch file:
If you want to see e.g. freetype-2.3.0-enable-spr.patch, then look at the Fedora src.rpm
Mod Edit: split unhelpful comments off here - tomk |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
|
Back to top |
|
|
m.s.w Apprentice
Joined: 19 Sep 2004 Posts: 190 Location: Kraków, Poland
|
Posted: Sun Aug 08, 2010 2:47 pm Post subject: |
|
|
How to use patches? Should I wrote a custom ebuild to use it? _________________ Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!" |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Tue Aug 10, 2010 2:47 pm Post subject: |
|
|
I gave a look at infinality's patchset and here are a few remarks. I've made some of them directly to moony but he never answered me:
- the subpixel field of the TT_ExecContextRec structure is the same as the existing grayscale field, it can be removed
- the new compatible_widths field is always false, it can be removed
- the new bgr field is always false, it can be removed
- the symmetrical_smoothing is not used, it can be removed
- afaict, skip_x is always 1 and skip_y is always 0, the code can be simplified.
All in all, this patchset may give very good results (I haven't tested it, yet) but it seems to be quite unfinished. If you really want to, I can add it as is to the LCD filtering overlay but I'd prefer waiting for a cleaner version. If someone with better knowledge on freetype then me can check the patchset and give a few advices, I can fix the patches myself if there nothing new on infinality's side. _________________ OGMRip - LCD filtering (Wiki) |
|
Back to top |
|
|
Infinality n00b
Joined: 12 Aug 2010 Posts: 24 Location: Wisconsin, USA
|
|
Back to top |
|
|
michaeljr n00b
Joined: 18 Aug 2010 Posts: 2
|
Posted: Wed Aug 18, 2010 9:35 am Post subject: |
|
|
I've been using the infinality patched freetype on Arch Linux and am trying to set up a new Gentoo box.
I can't find the LCD Filtering repo using layman. How do I add the repo using layman?
Thanks. _________________ --
Alchemised Rigour. |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Sun Aug 22, 2010 1:40 pm Post subject: |
|
|
GoofyX wrote: | @bi3l, the lcd-filtering overlay is not displayed in the listing of layman's overlays. We have to manually add it ourselves and sync it? |
Yep.
michaeljr wrote: | I can't find the LCD Filtering repo using layman. How do I add the repo using layman? |
Dowload this file, edit /etc/layman/layman.cfg and add "file:///path/to/lcd-filtering.xml" in the 'overlays' section (/path/to being the directory containing lcd-filtering.xml). _________________ OGMRip - LCD filtering (Wiki) |
|
Back to top |
|
|
norg Tux's lil' helper
Joined: 23 Aug 2010 Posts: 104 Location: Augsburg (Germany)
|
Posted: Mon Aug 23, 2010 11:30 pm Post subject: |
|
|
Hi, i switched back to gentoo and the only thing that's still bothering me is "fonts" :/
I added the lcd-filtering overlay but the patched freetype won't appear for emerge.
I downloaded the xml file and put it in the layman config, i could also add it with "layman -a lcd-filtering" but still won't appear.
I'm trying to add this cause my fonts are still not perfect at firefox. In urxvt and on gtk apps like gajim i use terminus what's working smooth.
So i found this thread and hope you can help me.
I made this screenshots to show you some webpage working fine:
http://andi.wootstube.de/up/2010-08-24-012049_1280x1006_scrot.png
These are screenshots from webpages that still seem to be ugly, fontfinder is saying it's Verdana but it looks weird:
http://andi.wootstube.de/up/2010-08-24-012053_1280x1006_scrot.png
http://andi.wootstube.de/up/2010-08-24-012056_1280x1006_scrot.png
http://andi.wootstube.de/up/2010-08-24-012059_1280x1006_scrot.png
http://andi.wootstube.de/up/2010-08-24-012101_1280x1006_scrot.png
As you see for example on the "Polizei" the "i" is thicker than the "l".
I tried turning off anti-aliasing and hinting but it would be worse then.
The fonts were fine with debian so i thinkt there has to be a way to get this working with gentoo.
And here are my settings:
http://andi.wootstube.de/up/eselect_fontconfig.txt
http://andi.wootstube.de/up/xorg.conf
Firefox Font Settings:
Fonts for Western
Proportional: Serif (14)
Serif: serif
Sans-serif: sans-serif
Monospace: monospace (12)
Minimum font size 10
Allow pages to choose their own fonts -> checked
I have no ~/.fonts.conf but i tried the one from PaulBredbury but that one disabled terminus in gtk apps somehow.
Edit: I found out, that the most problems are with Microsoft Fonts like Arial, Verdana, Courier. So i guess they have to be fixed.
For example the "code" environment in this forum uses Courier, Courier New, monospace. When i force monospace it looks fine, but with Courier it looks wrong. |
|
Back to top |
|
|
|