Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Random bold characters in firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
optiluca
Guru
Guru


Joined: 16 Jan 2006
Posts: 531
Location: Rivergaro, Italy

PostPosted: Fri Sep 28, 2012 9:46 pm    Post subject: [solved] Random bold characters in firefox Reply with quote

Hi.

I have been suffering this issue for quite a while now, but have not managed to fix it. For some reason, some webpages' fonts render incorrectly in Firefox, with some pairs of characters being rendered in bold. For example, http://www.spring.org.uk/ suffers from this ( http://oi48.tinypic.com/24wu15v.jpg ). I have a pretty basic font setup, I have meddled with lcdfilter / infinality overlays in the past but found them to cause more harm than good.

Does anyone have any idea what might be going on here?


My currently enabled fontconfig settings are:

Code:
  [3]   10-no-sub-pixel.conf *
  [12]  20-fix-globaladvance.conf *
  [13]  20-unhint-small-dejavu-sans.conf *
  [14]  20-unhint-small-dejavu-sans-mono.conf *
  [15]  20-unhint-small-dejavu-serif.conf *
  [22]  49-sansserif.conf *
  [25]  57-dejavu-sans.conf *
  [26]  57-dejavu-sans-mono.conf *
  [27]  57-dejavu-serif.conf *
  [29]  60-liberation.conf *
  [30]  65-fonts-persian.conf *
  [34]  70-no-bitmaps.conf *
  [37]  90-synthetic.conf *


Everything else (autohint included) is disabled.

Installed fonts are:

Code:
[I] media-fonts/corefonts

[I] media-fonts/dejavu

[I] media-fonts/encodings

[I] media-fonts/font-util

[I] media-fonts/liberation-fonts

[I] media-fonts/libertine-ttf

[I] media-fonts/urw-fonts



emerge --info

Code:
emerge --info
Portage 2.2.0_alpha134 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.5.4-pf x86_64)
=================================================================
System uname: Linux-3.5.4-pf-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.2
Timestamp of tree: Fri, 28 Sep 2012 15:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo LOCAL sunrise powerman benf ikelos vmware seden bitcoin gamerlay-stable
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/etc/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --jobs=8 --load-average=15 --with-bdeps=y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
LINGUAS="en_GB en_US it"
MAKEOPTS="-j8"
PKGDIR="/etc/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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 /var/lib/layman/sunrise /var/lib/layman/powerman /var/lib/layman/benf /var/lib/layman/ikelos /var/lib/layman/vmware /var/lib/layman/seden /var/lib/layman/bitcoin /var/lib/layman/gamerlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X \ a52 aac acl acpi alsa amd64 amr apm avi bash-completion berkdb bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdr chm cleartype cli consolekit cracklib crypt css cups cxx dbus declarative dhcp dri dts dv dvb dvd dvdr dvdread editor emboss emovix encode exif faac faad fam fame fbcondecor fbsplash ffmpeg firefox flac foomaticdb fortran gcj gd gdbm gif gpm gps gstreamer iconv icu id3tag ieee1394 imagemagick inotify ipod ipv6 jack joystick jpeg kde kickoff kipi ladspa lastfm lcms ldap libnotify libsamplerate libv4l2 lm_sensors mad matroska mbrola mikmod mmx mng modules mp2 mp3 mp4 mpeg mplayer msn mudflap multilib musicbrainz ncurses networkmanager nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf phonon plasma pmu png policykit ppds pppd qt qt3support qt4 quicktime readline rtc samba scanner sdl semantic-desktop session skype slp smp snmp spell sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg tcpd theora threads tiff truetype twolame udev udisks unicode upower usb v4l v4l2 vdpau vorbis wifi wma-fixed wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en_US it" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
# "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"

http://www.rinkworks.com/stupid/cs_mincing.shtml


Last edited by optiluca on Mon Oct 22, 2012 6:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
WD-40
n00b
n00b


Joined: 22 Sep 2004
Posts: 43

PostPosted: Sat Sep 29, 2012 12:24 am    Post subject: Re: Random bold characters in firefox Reply with quote

optiluca wrote:
Does anyone have any idea what might be going on here?


The bolded characters in your screenshot actually aren't random - rather, they are places where the font has what is called a 'ligature'. This is where two adjacent characters each have an overhang or extension of some sort, and as part of the font style, the characters are merged into a single glyph. (More info: http://en.wikipedia.org/wiki/Typographic_ligature)

So in this case, it is all the ligatures that appear to be bolded.

I don't know what that means in terms of what is wrong or how to solve it, but it might help your searches to find an answer... :wink:
Back to top
View user's profile Send private message
optiluca
Guru
Guru


Joined: 16 Jan 2006
Posts: 531
Location: Rivergaro, Italy

PostPosted: Mon Oct 01, 2012 3:49 pm    Post subject: Reply with quote

I did notice a pattern but I didn't know what it was exactly, thanks for pointing that out :) I have looked around, still no luck in finding anything though. I have a horrible feeling that I may have some remnants of my experiments with the various font overlays, as I would expect this to be a pretty widespread issue if it occurs on a vanilla fonts setup... Any insights appreciated :-)
_________________
# "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"

http://www.rinkworks.com/stupid/cs_mincing.shtml
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2108

PostPosted: Mon Oct 01, 2012 4:09 pm    Post subject: Reply with quote

Also noticing this problem, mostly on http://golem.de (German IT news). Strangely, I've got the problems with Opera (not always, though) and not with firefox or chromium.

Code:
eselect fontconfig list | grep \*
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf *
  [4]   10-sub-pixel-rgb.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-unhint-nonlatin.conf *
  [20]  45-latin.conf *
  [25]  57-dejavu-sans.conf *
  [26]  57-dejavu-sans-mono.conf *
  [27]  57-dejavu-serif.conf *
Code:
eix -IcA --only-names media-fonts
media-fonts/bitstream-cyberbit
media-fonts/cardo
media-fonts/corefonts
media-fonts/croscorefonts
media-fonts/dejavu
media-fonts/encodings
media-fonts/font-alias
media-fonts/font-bh-lucidatypewriter-100dpi
media-fonts/font-misc-misc
media-fonts/font-util
media-fonts/freefont-ttf
media-fonts/inconsolata
media-fonts/terminus-font
media-fonts/ttf-bitstream-vera
media-fonts/unifont
media-fonts/urw-fonts

_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
optiluca
Guru
Guru


Joined: 16 Jan 2006
Posts: 531
Location: Rivergaro, Italy

PostPosted: Mon Oct 22, 2012 6:52 pm    Post subject: Reply with quote

Found the same issue documented at https://bbs.archlinux.org/viewtopic.php?id=136771 . It seems as if Calibri is a particularly tricky font to deal with, which requires some kind of patchset to be applied to freetype in order to display properly.

Thanks to WD-40 for the helpful pointer!

Marking as solved.

EDIT: Trying lcd-filter overlay atm, reminding myself why I gave up on the thing. All fonts are rather blurry and often verging on bold. Admittedly, the Calibri rendering issue is no longer present...
_________________
# "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"

http://www.rinkworks.com/stupid/cs_mincing.shtml
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