SliTaz SliTaz Forum

You are not logged in.

#1 2013-03-21 14:43:41

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Infinality patches

Yesterday I've compiled freetype and fontconfig with Infinality patches.

While waiting packages compiling on the cook.slitaz.org I want to tell you more.

Package freetype-infinality is designed for SliTaz Cooking, but you can use it with SliTaz 4.0 if you want, because it have very simple depends existing in the both versions.

You can use freetype-infinality both

[*]in parallel with regular freetype (then regular freetype libs just be disabled, but not deleted). You can delete freetype-infinality and back to using regular freetype;

[*]you can use freetype-infinality instead of regular freetype.

Second news. Fontconfig package have Infinality addition to regular fontconfig. It have simple terminal-based style chooser, and I wrote extra-simple dialog using Yad to help you choose your system style of font rendering.

Ok, here are examples:

Infinality style:

infinality-infinality.png

Windows 7 style:

infinality-win7.png

Windows XP style:

infinality-winxp.png

Windows 98 style:

infinality-win98.png

OSX style:

infinality-osx.png

OSX2 style:

infinality-osx2.png

Linux style:

infinality-linux.png

NOTE, that you need TFT (LCD) monitors to see font enhancement.

Display of fonts depends on the technology of the monitor, and on the resolution, and other factors such as the ambient light, the distance to the monitor, your eyes age, personal preferences...

Using Infinality patches you can control more aspects of your font rendering, and adjust them to your taste.

Wait for links where you'll can download packages.

Offline

#2 2013-03-22 12:25:56

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Infinality patches

Huge thanks to Pascal Bellard! He's our guardian angel wink

Really, he makes a lot of invisible to other work in order to find and correct errors in the receipts and to move new packages to mirror.

Packages, which I mentioned above, compiled without errors in my environment. But they, for unknown reasons for me, not want to compile on cook.slitaz.org. Without the help of Pascal nothing would have happened!

So, now you can download packages from cook.slitaz.org in this order:

[*]freetype-infinality (228K);

[*]fontconfig-infinality (48K);

[*]fontconfig-infinality-yad (8K).

If you still see no differences in the pictures above, I prepared in GIMP small animation for you:

styles.gif

People using CRT monitors, prefer fonts without antialiasing. Probably because the monitor itself blurs clear outlines of letters and pre smoothed letters give a large blur. Clear, either black or white, the letters we see in Windows (98).

Unfortunately (it?) on TFT-monitors, each pixel can be seen clearly. At low resolution of the monitor and the small size of the letters, the letters become just unreadable rubbish!

By default SliTaz uses grayscale antialiasing, which could equally well be suitable for CRT monitors and for TFT-monitors.

However, for sufficiently large pixel size on TFT-monitor, it is possible to make the outlines of the letters smoother. In this case, the horizontal resolution of the monitor like is tripled. If you still see the pixels because you sit close to the monitor, or because the screen resolution is low (larger pixels), or because the monitor is used substandard technology (or monitor have high contrast or color), it is possible to use different LCD-filters.

In contrast, Apple people prefer rather blurry fonts. But they preserve good letters shape.

By the way, if you use fontconfig-infinality-yad on SliTaz cooking, please change 'subox' to 'tazbox su' in /usr/share/applications/infctl-yad.desktop because SliTaz drop 'subox' on newer releases (or just wait when package recooked, about a hour).

And I want to say that better solution is to add this dialog to TazPanel. But it is too early. I have only idea of TazPanel-modular, when we will can add/remove separate pages to TazPanel by installing separate packages. Only idea, far to realization…

Offline

#3 2013-03-22 13:33:36

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Infinality patches

SliTaz can't run without Pascal ;-)

The only issue on cooking core is an ldconfig error from tazpkg because of  freetype-infanality post_install()

Cooking needs glibc-dev installed to get ldconfig.

I added [c]subox[/c] wrapper for [c]tazbox su[/c]  back into slitaz-tools-boxes, no editing was necessary.

These fonts look really good on my 1440x900 TFT LCD

OSX2 style is my favorite.

Thanks Aleksej !

Offline

#4 2013-03-22 21:58:32

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Infinality patches

@aleksej: for tazpanel-modular see http://hg.slitaz.org/tazpanel/rev/be8002e4faa7 and http://hg.slitaz.org/tazinst/rev/02aae5848073

Offline

#5 2013-03-23 00:18:57

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Infinality patches

Pascal, why no? Clear and simple. And, seems, working wink

But here are some pitfalls on the way. Risk of long menus. Add only menus, but not sub-menus; what if I want to add item to Settings?

In my head it is more complex. Menu generated and cached. Can recache if no menu file found, and by tazpkg. Menu generator asks each cgi for pieces of menu - it runs cgi as shell script with option (maybe, $1=menu). Cgi returns next info: [name of parent menu, item icon, item text, and url] for all items. Then merged all that chunks into one menu. Ok, its a long story.

Next "mad" idea.

"TazPanel for user" (in contrast with root). It is a place, web interface, where user can change user (not system-wide) preferences.

Offline

#6 2015-10-08 05:33:29

Zann
Member
Registered: 2015-09-15
Posts: 14

Re: Infinality patches

Aleksej,

Thank you for the infinality patches, they improve the fonts very much. The Yad GUI tool is very handy for selecting a new style, but it turned out hard for me to remember the old (current) style. Being a complete noob in everything Linux as I am, it took me a while to figure out how to determine the current infinality setting - by looking at what infctl-yad does, then at what infctl.sh does, and finally at the real location of the /etc/fonts/infinality/conf.d - is there a better way?

This got me thinking that the Yad GUI could show the current style too. So I have added a call to REALPATH and a CASE to the infctl-yad, and the result looks like this:

[attachment=39281,2021]

I tried attaching the full modified infctl-yad here but failed - [denied mime] even with TXT extension in attempt to comply with the "allowed uploads". Is there a better way to share it than using the CODE tag?

Thanks again,

-Z.

Offline

#7 2015-10-08 06:39:39

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Infinality patches

Hi Zann,

Welcome aboard! smile

Good solution. I'll implement it today.

Attaching a text file is an old bug, not fixed over years. Forum's users in a "Member" role can't attach txt.

For large texts you can use http://paste.slitaz.org/

Offline

#8 2015-10-08 09:40:46

Zann
Member
Registered: 2015-09-15
Posts: 14

Re: Infinality patches

Yep, the forum is a bit rough, but that's how we like it smile Anyway, here is what I have been playing with:

http://paste.slitaz.org/?4ca61ed4abff6707#WSXdkIbYu/Ow+bRw6EEkDR9Gf6dGXdfBx3ynPzrIX6U=

-Z.

Offline

#9 2015-10-09 10:58:14

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Infinality patches

Hi Zann,

Excuse me for a delay. Script now is fixed: http://hg.slitaz.org/wok/rev/7bffd5bfb8b4

Download: http://cook.slitaz.org/cooker.cgi?download=fontconfig-infinality-yad-20151009.tazpkg

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]