Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ugly font in Chromium
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mephist0
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2005
Posts: 94
Location: Germany, Frankfurt/Main

PostPosted: Sat Aug 30, 2014 11:47 am    Post subject: [SOLVED] ugly font in Chromium Reply with quote

Hi,

some fonts are ugly, or not rendered correctly.

Look at these screenshots:


https://gist.github.com/cmeiklejohn/1375438
http://www.pic-upload.de/view-24431246/Screenshot---08302014---01-41-16-PM.png.html

facebook:
http://www.pic-upload.de/view-24431261/Screenshot---08302014---01-42-32-PM.png.html

https://eu.battle.net/d3/de/blog/15487814/patch-210-ist-jetzt-live-27-08-2014
http://www.pic-upload.de/view-24431273/Screenshot---08302014---01-43-37-PM.png.html

[EDIT]

solved it by enabling 70-no-bitmaps.conf
Code:
eselect fontconfig enable 70-no-bitmaps.conf


[/EDIT]


it seems only one font(family?) is rendered ugly.

Here is my emerge --info:

Code:
emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16356080 total,  11439780 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Sat, 30 Aug 2014 05:45:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx berkdb bindist bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gif gnutls gpm gtk gtk3 iconv id3tag ipv6 jpeg jpeg2k lcms ldap libnotify lock mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline sdl session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd thunar tiff truetype type3 udev udisks unicode upower usb vdpau vim-syntax vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="multiboot efi-64" INPUT_DEVICES="evdev roccat_konextd roccat_koneplus roccat_ryos" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


My .fonts.conf file:
Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
   <match target="font">
      <edit mode="assign" name="rgba">
         <const>rgb</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>hintfull</const>
      </edit>
   </match>
   <match target="font">
      <edit mode="assign" name="antialias">
      <bool>true</bool>
      </edit>
   </match>
   <match target="font">
      <edit name="autohint" mode="assign">
         <bool>true</bool>
      </edit>
   </match>
   <!-- Disable autohint for bold fonts so they are not overly bold
   <match target="font" >
      <test compare="more" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
   </match> -->
</fontconfig>


Code:
eselect fontconfig list
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-no-sub-pixel.conf
  [3]   10-scale-bitmap-fonts.conf *
  [4]   10-sub-pixel-bgr.conf
  [5]   10-sub-pixel-rgb.conf *
  [6]   10-sub-pixel-vbgr.conf
  [7]   10-sub-pixel-vrgb.conf
  [8]   10-unhinted.conf
  [9]   11-lcdfilter-default.conf *
  [10]  11-lcdfilter-legacy.conf
  [11]  11-lcdfilter-light.conf
  [12]  20-unhint-small-dejavu-sans.conf
  [13]  20-unhint-small-dejavu-sans-mono.conf
  [14]  20-unhint-small-dejavu-serif.conf
  [15]  20-unhint-small-vera.conf
  [16]  25-ttf-arphic-ukai-render.conf *
  [17]  25-ttf-arphic-uming-bitmaps.conf *
  [18]  25-ttf-arphic-uming-render.conf *
  [19]  25-unhint-nonlatin.conf
  [20]  30-metric-aliases.conf *
  [21]  30-urw-aliases.conf *
  [22]  35-ttf-arphic-ukai-aliases.conf *
  [23]  35-ttf-arphic-uming-aliases.conf *
  [24]  40-nonlatin.conf *
  [25]  41-ttf-arphic-ukai.conf *
  [26]  41-ttf-arphic-uming.conf *
  [27]  42-luxi-mono.conf *
  [28]  44-wqy-zenhei.conf *
  [29]  45-latin.conf *
  [30]  49-sansserif.conf *
  [31]  50-user.conf *
  [32]  51-local.conf *
  [33]  57-dejavu-sans.conf *
  [34]  57-dejavu-sans-mono.conf *
  [35]  57-dejavu-serif.conf *
  [36]  59-google-droid-sans.conf *
  [37]  59-google-droid-sans-mono.conf *
  [38]  59-google-droid-serif.conf *
  [39]  60-latin.conf *
  [40]  64-ttf-arphic-uming.conf *
  [41]  65-fonts-persian.conf *
  [42]  65-khmer.conf
  [43]  65-nonlatin.conf *
  [44]  66-ja-ipafonts.conf *
  [45]  66-takao-fonts.conf *
  [46]  66-wqy-zenhei-sharp.conf *
  [47]  66-wqy-zenhei-sharp-no13px.conf
  [48]  69-unifont.conf *
  [49]  70-no-bitmaps.conf
  [50]  70-yes-bitmaps.conf
  [51]  75-ttf-arphic-ukai-select.conf *
  [52]  80-delicious.conf *
  [53]  90-synthetic.conf *
  [54]  90-ttf-arphic-ukai-embolden.conf *
  [55]  90-ttf-arphic-uming-embolden.conf *
  [56]  99pdftoopvp.conf

_________________
There is only one God, and his name is Death. And there is only one thing we say to Death: 'Not today!'

Photography portfolio
Back to top
View user's profile Send private message
ufospl
n00b
n00b


Joined: 03 Aug 2008
Posts: 2
Location: Poland

PostPosted: Mon Sep 01, 2014 4:14 pm    Post subject: Reply with quote

Thanks for help, very handy solution. :-)
Back to top
View user's profile Send private message
dahoste
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2005
Posts: 138
Location: Maryland, USA

PostPosted: Tue Sep 02, 2014 7:24 pm    Post subject: Reply with quote

+1 from me as well. Was expecting to have to slog through something really gross to fix this.

Thanks!
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Tue Sep 02, 2014 7:28 pm    Post subject: Reply with quote

Thank you so much! I love an elegant one line fix to a really annoying problem!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum