<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>60712</bug_id>
          
          <creation_ts>2004-08-17 13:38 0000</creation_ts>
          <short_desc>XOSD 2.2.8-r1&apos;s outline mode uses the wrong vertical offset (text is not centered on the outline).</short_desc>
          <delta_ts>2004-09-08 03:07:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>skotlex@notsohotmail.com</reporter>
          <assigned_to>lanius@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>skotlex@notsohotmail.com</who>
            <bug_when>2004-08-17 13:38:37 0000</bug_when>
            <thetext>Last weekend up upgraded my system, and xosd got updated from 2.2.5-r1 to 2.2.8-r1, after this update, I noticed that the text displayed was &quot;Wrong&quot;. I played around with the xosd-xmms plugin, and realized that the shadow mode was working, but the offset setting was &quot;broken&quot;. The vertical offset math seems broken in particular. For example, if I use an offset of one, the outlined black text is two pixels higher/wider than the normal text, yet those two extra pixels are drawn on the bottom of the text instead of one up and one below. If I set an offset of two, now the four extra black outline horizontal lines are all piled on the bottom of the text, in other words, both the text and the outline are vertically aligned to the top, rather than centered.
Is this some weird problem that only I have bumped into? The On Screen Display plugin I use on XMMS says it is version 2.2.8, and the problem exists there and on osd_cat and pretty much on every xosd scripts/programs I have lying around.
Oh I tested it with the default font settings of osd_cat, and the personal font settings I use on my apps (-artwiz-aqui-medium-r-bold-*-11-*-*-*-p-*-iso8859-1), and this issue persists independently of which area of the screen you tell the text to appear in.

Reproducible: Always
Steps to Reproduce:
1. Use osd_cat or the xmms xosd plugin to display some text with an offset of at least 1 and a shadow of 0.
2. 
3.

Actual Results:  
Both text and outline were vertically aligned to the top of where the text
should be displayed.

Expected Results:  
Outlined text is where it should be, but the text should appear vertically
centered on it.

I run a &quot;x86&quot; keyworded system, and the main dependencies versions would be:

media-libs/gdk-pixbuf-0.22.0-r2
gnome-base/gnome-libs-1.4.2

Emerge info:

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.2
                                                                        
6-gentoo-r6)
=================================================================
System uname: 2.4.26-gentoo-r6 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer -finline-functions -finl
                                                                        
ine-limit=600 -mfpmath=387 -ffast-math -ftracer -funroll-loops -fprefetch-loop-a
                                                                         rrays
-freduce-all-givs&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
                                                                        
hare/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon-xp -O3 -pipe -fomit-frame-pointer -finline-functions -fi
                                                                        
nline-limit=600 -mfpmath=387 -ffast-math -ftracer -funroll-loops -fprefetch-loop
                                                                         -arrays
-freduce-all-givs&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache digest sandbox userpriv&quot;
GENTOO_MIRRORS=&quot;ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirr
                                                                        
or.datapipe.net/gentoo http://gentoo.binarycompass.org http://gentoo.seren.com/g
                                                                         entoo
http://gentoo.mirrored.ca/&quot;
MAKEOPTS=&quot;-j2 -s&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/etc/portage/overlay&quot;
SYNC=&quot;rsync://rsync.samerica.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow X acpi acpi4linux alsa avi canna cap cjk crypt cscope cups dedicated
                                                                          dga
dillo divx4linux dvd erandom fam fbcon flac freewnn gd gif gimpprint ginac g   
                                                                      pm gtk
gtk2 imap imlib innodb jabber java jikes jpeg kerberos libwww matroska mb      
                                                                   ox mikmod mmx
moznocompose moznoirc moznomail mpeg objc oggvorbis opengl pam par             
                                                            se-clocks pcre
pdflib perl png ppds python quicktime readline rtc samba scanner               
                                                           sdl spell sse ssl
tcltk theora threads tiff truetype unicode usagi usb vim-with-                 
                                                        x wmf x86 xface xml xml2
xmms xv xvid zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>skotlex@notsohotmail.com</who>
            <bug_when>2004-08-17 13:44:02 0000</bug_when>
            <thetext>Created an attachment (id=37627)
(cropped) Screenshot of the issue.

That&apos;s the xosd xmms plugin text with a setting of offset 1 and shadow 0,
centered on the top of the screen with a vertical offset of 2 (such value does
not affects the bug, already tested)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2004-08-19 02:11:25 0000</bug_when>
            <thetext>what happens if you comment the patch in the ebuild:

#epatch ${FILESDIR}/${PV}-xmms-trackpos.patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>skotlex@notsohotmail.com</who>
            <bug_when>2004-08-19 09:39:57 0000</bug_when>
            <thetext>Nope... commenting out the patch did no difference. Apparently it is a bug in xosd itself.
I hope more people can reproduce this bug, I&apos;d hate to think I am the only lone soul out there for whom XOsd&apos;s outline mode is broken...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andrsd@seznam.cz</who>
            <bug_when>2004-08-27 00:45:00 0000</bug_when>
            <thetext>Created an attachment (id=38276)
Patch for correcting vertical positioning of outlined texts

This patch corrects the vertical positioning of outlined texts. I have already
contacted the author of xosd and sent him this patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2004-09-08 03:07:20 0000</bug_when>
            <thetext>fixed in 2.2.10</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>37627</attachid>
            <date>2004-08-17 13:44 0000</date>
            <desc>(cropped) Screenshot of the issue.</desc>
            <filename>screenshot.png</filename>
            <type>image/png</type>
            <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAADQAAAAQBAMAAACra0H4AAAAIVBMVEUAAAAQNzQKPjoQU00SbmYY
c2saiH4PkYUZmYwWvqr///85/N0pAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAA
AAd0SU1FB9QIERQqBgCJ7RMAAACXSURBVHjafZDNDcMgDIWNyMknskImQGKBKGKFrpABemEFVujN
Z08ZG6wWNT/PQqD3PdsS8LkVPKDlWkgV8spM+V8bUlEEPCHT7+ZJ4wVSFMsDsBUg9doNIRuiAc1B
mr89yE5SDb0UwTBO7T7UUDDkmjkgNwfd1fZpoy5gQSmCl3PW3lGSp++O11hsKF9qe5fyhG6+d6n1
AKRefCbzVjRVAAAAAElFTkSuQmCC
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38276</attachid>
            <date>2004-08-27 00:45 0000</date>
            <desc>Patch for correcting vertical positioning of outlined texts</desc>
            <filename>2.2.8-lib-fontpos.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXJOIHhvc2QtMi4yLjgvc3JjL2xpYnhvc2QveG9zZC5jIHhvc2QtMi4yLjguMS9zcmMv
bGlieG9zZC94b3NkLmMKLS0tIHhvc2QtMi4yLjgvc3JjL2xpYnhvc2QveG9zZC5jCTIwMDQtMDct
MDUgMDA6Mjk6MDYuMDAwMDAwMDAwICswMjAwCisrKyB4b3NkLTIuMi44LjEvc3JjL2xpYnhvc2Qv
eG9zZC5jCTIwMDQtMDgtMjYgMTU6MjE6NDMuMjMzNDg1MjgwICswMjAwCkBAIC0zNzksNiArMzc5
LDcgQEAKIAogICAgICAgICBkcmF3X3dpdGhfbWFzayhvc2QsIGwsIHggLSBpLCB5LCAtb3NkLT5l
eHRlbnQtPnksIGRyYXdfbGluZV9iaXRtYXApOwogICAgICAgfQorCSAgeSArPSBvc2QtPm91dGxp
bmVfb2Zmc2V0OwogICAgIH0KIAogICAgIFhTZXRGb3JlZ3JvdW5kKG9zZC0+ZGlzcGxheSwgb3Nk
LT5nYywgb3NkLT5waXhlbCk7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>