Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312471 - 32bit binary-only packages depending on app-emulation/emul-linux-x86 don't do font hinting
Summary: 32bit binary-only packages depending on app-emulation/emul-linux-x86 don't do...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on: 145737
Blocks:
  Show dependency tree
 
Reported: 2010-03-31 19:06 UTC by Pun
Modified: 2010-04-05 18:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pun 2010-03-31 19:06:22 UTC
Namely, acroread which uses gtk and googleearth (even with shared qt'-qt-bundled', which comes from emul-linux under amd64) don't do font hinting while every other application uses hinting as specified in my /etc/fonts/local.conf . I have read most of the guides about customizing font rendering and haven't found any clues on this specific problem. The same applications hint fonts just fine under debian squeeze 32bit wih exactly the same config settings. Unfortunately I do not have access to gentoo-x86 box to check there as well atm. So I believe the problem concernes emul-linux libraries.

Reproducible: Always




<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>
<!-- Ugly fonts -->
<selectfont>
  <rejectfont>
    <glob>/usr/share/fonts/100dpi/*</glob>
    <glob>/usr/share/fonts/75dpi/*</glob>
    <glob>/usr/share/fonts/cyrillic/*</glob>
    <glob>/usr/share/fonts/default/ghostscript/*</glob>
    <glob>/usr/share/fonts/TTF/*</glob>
    <glob>/usr/share/fonts/Type1/*</glob>
    <glob>/usr/share/fonts/Speedo/*</glob>
    <glob>/usr/share/fonts/ttf-bitstream-vera/*</glob>
    <glob>/usr/share/fonts/dejavu/*</glob>
  </rejectfont>
</selectfont>
<alias>
  <family>sans-serif</family>
  <prefer><family>Verdana</family></prefer>
  <accept><family>Arial</family></accept>
  <default><family>sans-serif</family></default>
</alias>
<alias>
  <family>serif</family>
  <prefer><family>Georgia</family></prefer>
  <default><family>serif</family></default>
</alias>
<alias>
  <family>monospace</family>
  <prefer><family>Courier New</family></prefer>
  <default><family>monospace</family></default>
</alias>


<!-- Antialiasing -->
<match target="font">
  <test qual="any" name="size" compare="more">
    <int>14</int>
  </test>
  <edit name="antialias" mode="assign_replace"><bool>true</bool></edit>
</match>
<match target="font">
  <test qual="any" name="size" compare="less_eq">
    <int>14</int>
  </test>
  <test qual="any" name="weight" compare="less_eq">
    <const>regular</const>
  </test>
  <test qual="any" name="family" compare="not_eq">
    <string>Comic Sans MS</string>
  </test>
  <test qual="any" name="family" compare="not_eq">
    <string>Impact</string>
  </test>
  <edit name="antialias" mode="assign_replace"><bool>false</bool></edit>
</match>
<match target="font">
  <test name="pixelsize" compare="less" qual="any">
    <double>14</double>
  </test>
  <test qual="any" name="weight" compare="less_eq">
    <const>regular</const>
  </test>
  <edit mode="assign" name="antialias">
    <bool>false</bool>
  </edit>
</match>
<match target="font">
  <test qual="any" name="pixelsize" compare="less_eq">
    <int>14</int>
  </test>
  <edit name="antialias" mode="assign_replace"><bool>false</bool></edit>
</match>

<!-- Hinting -->
<match target="font">
    <edit name="autohint" mode="assign_replace"><bool>false</bool></edit>
    <edit name="hinting" mode="assign_replace"><bool>true</bool></edit>
</match>

<match target="font">
    <edit name="dpi" mode="assign_replace"><double>96</double></edit>
</match>
</fontconfig>
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2010-04-03 16:52:21 UTC
I think it's because the libraries in the emul packages have to be built with USE=bindist which disables nice features in freetype.
Comment 2 Pun 2010-04-03 17:15:06 UTC
(In reply to comment #1)
> I think it's because the libraries in the emul packages have to be built with
> USE=bindist which disables nice features in freetype.
> 

That seems to be it. Is it technically possible to make source emul-linux packages? Devs do compile them somehow.
Comment 3 Pacho Ramos gentoo-dev 2010-04-05 18:14:21 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > I think it's because the libraries in the emul packages have to be built with
> > USE=bindist which disables nice features in freetype.
> > 
> 
> That seems to be it. Is it technically possible to make source emul-linux
> packages? Devs do compile them somehow.
> 

Sadly not just now, this depends on bug 145737

Until then, some nice work is taking place in multilib overlay, but I don't know about its current status. I would suggest you to ask in #gentoo-multilib-overlay channel at irc.freenode.org

Good luck!