mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 129666: Xlib/Xprint do not scale em-dash & co. correctly. r=bstell@ix.netcom.com, sr=scc. Checking in for Roland.Mainz@informatik.med.uni-giessen.de
This commit is contained in:
parent
b3a9e29734
commit
6e31cc6a39
@ -265,8 +265,6 @@ struct nsFontCharSetMapXlib
|
||||
nsFontCharSetInfoXlib* mInfo;
|
||||
};
|
||||
|
||||
typedef XFontStruct *XFontStructPtr;
|
||||
|
||||
/* WorkInProgress (for bug 119491 ("Cleanup global vars in PostScript and
|
||||
* Xprint modules"): Container to hold per-device context data for
|
||||
* fontmetrics code */
|
||||
@ -292,8 +290,6 @@ public:
|
||||
virtual ~nsFontXlib();
|
||||
NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW
|
||||
|
||||
operator const XFontStructPtr() { return (const XFontStructPtr)mFont; }
|
||||
|
||||
void LoadFont(void);
|
||||
PRBool IsEmptyFont(XFontStruct*);
|
||||
|
||||
|
@ -552,9 +552,9 @@ void nsRenderingContextXlib::UpdateGC()
|
||||
values.foreground = color;
|
||||
valuesMask |= GCForeground;
|
||||
|
||||
if (mCurrentFont && XFontStructPtr(*mCurrentFont)) {
|
||||
if (mCurrentFont && mCurrentFont->GetXFontStruct()) {
|
||||
valuesMask |= GCFont;
|
||||
values.font = XFontStructPtr(*mCurrentFont)->fid;
|
||||
values.font = mCurrentFont->GetXFontStruct()->fid;
|
||||
}
|
||||
|
||||
values.line_style = mLineStyle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user