aboutsummaryrefslogtreecommitdiff
path: root/www/mozilla/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-17 07:12:34 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-03-17 07:12:34 +0000
commitdbe1712ce345e8209a66970d054c2a631711b2b1 (patch)
treef0abf350a29e59fdd8b6817233ff63d80ad52b69 /www/mozilla/files
parentdd246fa15925d9a5a2bc26a0b7c1d8dc99680e30 (diff)
downloadports-dbe1712ce345e8209a66970d054c2a631711b2b1.tar.gz
ports-dbe1712ce345e8209a66970d054c2a631711b2b1.zip
Notes
Diffstat (limited to 'www/mozilla/files')
-rw-r--r--www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp60
1 files changed, 12 insertions, 48 deletions
diff --git a/www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp b/www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp
index b7f272ee767a..bc141062f7c6 100644
--- a/www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp
+++ b/www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp
@@ -1,48 +1,12 @@
---- gfx/src/gtk/nsFontMetricsXft.cpp.orig Tue Jan 6 19:20:28 2004
-+++ gfx/src/gtk/nsFontMetricsXft.cpp Fri Jan 16 22:36:20 2004
-@@ -105,6 +105,7 @@
- FcPattern *mPattern;
- FcPattern *mFontName;
- FcCharSet *mCharset;
-+ int mNotXft;
- };
-
- class nsFontXftInfo;
-@@ -1066,7 +1067,7 @@
- }
-
- nsFontXft *font = (nsFontXft *)mLoadedFonts.ElementAt(0);
-- if (font->HasChar(aChar))
-+ if (font->HasChar(aChar) && font->GetXftFont())
- return font;
-
- // We failed to find the character in the best-match font, so load
-@@ -1947,6 +1948,7 @@
- FcPatternReference(mFontName);
-
- mXftFont = nsnull;
-+ mNotXft = 0;
-
- // set up our charset
- mCharset = nsnull;
-@@ -1973,7 +1975,7 @@
- XftFont *
- nsFontXft::GetXftFont(void)
- {
-- if (!mXftFont) {
-+ if (!mXftFont && !mNotXft) {
- FcPattern *pat = FcFontRenderPrepare(0, mPattern, mFontName);
- if (!pat)
- return nsnull;
-@@ -1992,8 +1994,10 @@
- FcPatternDel(pat, FC_SPACING);
-
- mXftFont = XftFontOpenPattern(GDK_DISPLAY(), pat);
-- if (!mXftFont)
-+ if (!mXftFont) {
- FcPatternDestroy(pat);
-+ mNotXft = 1;
-+ }
- }
-
- return mXftFont;
+--- gfx/src/gtk/nsFontMetricsXft.cpp.orig Wed Mar 17 02:08:01 2004
++++ gfx/src/gtk/nsFontMetricsXft.cpp Wed Mar 17 02:08:15 2004
+@@ -65,7 +65,8 @@
+
+ #include <gdk/gdkx.h>
+ #include <freetype/tttables.h>
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+
+ #define FORCE_PR_LOG
+ #include "prlog.h"