Closed Bug 94301 Opened 23 years ago Closed 23 years ago

[xlib] Xlib-port uses other fonts than GTK+-port

Categories

(Core :: XUL, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.4

People

(Reporter: roland.mainz, Assigned: roland.mainz)

Details

(Whiteboard: want for 0.9.4)

Attachments

(1 file)

Xlib gfx code (gfx/src/xlib/) is more or less a port of GTK+ gfx code (gfx/src/gtk/) from GTK+/GDK library to plain libX11 calls... ... in theory both gfx modules should use exactly the same fonts - but they are currently (=2001-08-05-08-trunk) using different fonts... for example - most fonts are slightly bigger... ... any ideas ?
I left fonts big bigger on purpose so i can see am i using gtk or xlib :) I think this will fix that: gfx/src/xlib/nsDeviceContextXlib.cpp - #define XLIB_DEFAULT_FONT1 "-*-helvetica-medium-r-*-*-*-140-*-*-*-*-iso8859-1" + #define XLIB_DEFAULT_FONT1 "-*-helvetica-medium-r-*-*-*-120-*-*-*-*-iso8859-1"
Status: UNCONFIRMED → NEW
Ever confirmed: true
Filed patch. But I still see differences in fonts... more ideas ?
My patch works for me, your patch misses one '*'
I copied the strings from GTK+ toolkit after I tested your versions. There is still a difference in both versions vs. GTK+ build. Interesting detail: Xprint module (which uses nsFontMetricsXlib.cpp) behaves differently on Xlib and GTK+ builds. Why ? In theory both should create identical results... or not ? Mhhh... sometimes |gFontSubConverter->Init()| fails in nsFontXlibSubstitute::Convert()... is that related to this issue ?
Any news here ? Stealing bug from pocemit to get it on my "0.9.4 radar" ...
Assignee: timecop → Roland.Mainz
Keywords: patch, review
Whiteboard: want for 0.9.4
Target Milestone: --- → mozilla0.9.4
Requestiong r=/sr= for the patch ...
Status: NEW → ASSIGNED
Keywords: mozilla0.9.4
May God have mercy on us all. The 212 bug spam-o-rama is Now!
QA Contact: aegis → jrgm
Requesting sr= ...
Requesting a= for {0.9.4,trunk} - this two line patch is too simple to not make it in 0.9.4 ... :-))
Keywords: reviewapproval
a=asa on behalf of drivers.
C:\moz_src\mozilla\gfx\src\xlib>cvs commit -m "Bug 94301. X-lib-port uses other fonts than GTK+-port. Patch by Roland.Mainz@informatik.med.uni-giessen.de (gisbu rn on irc) r=dbaron sr=tor a=asa on behalf of drivers" nsDeviceContextXlib.cpp Checking in nsDeviceContextXlib.cpp; /cvsroot/mozilla/gfx/src/xlib/nsDeviceContextXlib.cpp,v <-- nsDeviceContextXli b.cpp new revision: 1.42; previous revision: 1.41 done
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: