diff options
author | marcus <marcus@FreeBSD.org> | 2004-03-17 15:12:34 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-03-17 15:12:34 +0800 |
commit | 13af954b790aa81992cd93550cdd24359c612639 (patch) | |
tree | a658787f83b35e75daf5bdd3d58be0fd62f808ed /www/mozilla | |
parent | b0367bb3284980d1639e0c8e61ceda2ad856aa0e (diff) | |
download | freebsd-ports-gnome-13af954b790aa81992cd93550cdd24359c612639.tar.gz freebsd-ports-gnome-13af954b790aa81992cd93550cdd24359c612639.tar.zst freebsd-ports-gnome-13af954b790aa81992cd93550cdd24359c612639.zip |
Fix build with freetype2-2.1.7.
Diffstat (limited to 'www/mozilla')
-rw-r--r-- | www/mozilla/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp | 60 |
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" |