Page 1 of 1

Fonts - bytecode interpreter is enabled

PostPosted: Jun 4th, '11, 03:32
by carlash
Seems to me there should be an easier way to fix "ugly" fonts than manually editing a config file... I've done a clean install of Mageia 1 and noticed "ugly" fonts. Googled and found this bug report:

https://bugs.mageia.org/show_bug.cgi?id=175

Previously in Mandrivia 2010.1/.2 and earlier to prevent "ugly" fonts I added /lib64freetype.*plf/ to /etc/urpmi/skip.list file. Now in Mageia 1 it seems that it's necessary to edit or create ~/.fonts.conf file.

$ cat ~/.fonts.conf
Code: Select all
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="autohint">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>


Is there a better solution?

Re: Fonts - bytecode interpreter is enabled

PostPosted: Jun 12th, '11, 20:56
by lilogrub
I'm not sure what do you mean by "ugly fonts", but did you try changing font rendering in gconf-editor?

Section is / > desktop > gnome > font_rendering

Disabling hinting ("none" or "slight") works for me ;)

Re: Fonts - bytecode interpreter is enabled

PostPosted: Jul 22nd, '11, 03:48
by David_Batson
I just installed lib64freetype6-2.4.4-5.1.mga1.tainted and enabled sub-pixel rendering RGB with hinting set at slight (in Configure Your Desktop > Application Appearance > Fonts). Using Force fonts DPI: 96 DPI.

What an improvement on my laptop! :mrgreen:

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 10th, '14, 22:12
by dglent
I'd like to have this setting available and i make a little dialog to help to enable/disable autohint, and a rpm:
http://glenbox.free.fr/autohint-onoff/a ... noarch.rpm
(Can be install from Mageia 4 and later as it uses python3-qt4)

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 12th, '14, 09:53
by ozky
There is missing requires in that package,python3-lxml.

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 12th, '14, 10:15
by dglent
ozky wrote:There is missing requires in that package,python3-lxml.


Thanks for spotting :)

http://glenbox.free.fr/autohint-onoff/a ... noarch.rpm

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 12th, '14, 11:39
by ozky
It's working fine.
This why packages need testing. ;)

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 13th, '14, 06:43
by dglent
ozky wrote:It's working fine.
This why packages need testing. ;)


You have absolutely right. They told me to fix one other thing, when the ~/.config/fontconfig folder was initially missing the dialogue freezed

http://glenbox.free.fr/autohint-onoff/a ... noarch.rpm

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 13th, '14, 11:57
by ozky
Kde don't have that problem because kde fonts settings make that fonts.conf file automatically.

Re: Fonts - bytecode interpreter is enabled

PostPosted: Apr 18th, '14, 07:05
by dglent
ozky wrote:Kde don't have that problem because kde fonts settings make that fonts.conf file automatically.


I deleted the fonts.conf and i have to enter to systemsettings>Look and appear>Fonts in order to create the file, but i didn't try a reboot to see if it is created at the login.

The rpm is imported in cauldron and the dialog supports translations.

Re: Fonts - bytecode interpreter is enabled

PostPosted: Nov 4th, '14, 11:25
by dglent
Add option to disable autohint in lxqt fonts configuration panel:
https://github.com/lxde/lxqt-config/pul ... -187605798

Re: Fonts - bytecode interpreter is enabled

PostPosted: Nov 4th, '14, 22:43
by doktor5000
dglent wrote:Add option to disable autohint in lxqt fonts configuration panel:
https://github.com/lxde/lxqt-config/pul ... -187605798


Thanks for your work, just added https://github.com/lxde/lxqt-config/com ... 35e3.patch to our lxqt-config package.

PostPosted: Nov 4th, '14, 23:01
by dglent
Thanks !
Our lxqt in Mageia is cutting edge ;)


A screenshot:

Image

Re: Fonts - bytecode interpreter is enabled

PostPosted: Nov 4th, '14, 23:07
by doktor5000
FWIW, if I mention you in the commit messages, is your nick okay or should I use your full name?
E.g. http://svnweb.mageia.org/packages?view= ... ion=794253

PostPosted: Nov 4th, '14, 23:11
by dglent
It is ok for me with the nick, thank you.

Re: Fonts - bytecode interpreter is enabled

PostPosted: Nov 4th, '14, 23:18
by doktor5000
Just submitted to buildsystem, should hit the mirrors soon. If you have more stuff for LXQT, please ping me :D