diff --git a/gfx/src/ps/nsFontMetricsPS.cpp b/gfx/src/ps/nsFontMetricsPS.cpp index 090d070ac81..ffd5bcee0fc 100644 --- a/gfx/src/ps/nsFontMetricsPS.cpp +++ b/gfx/src/ps/nsFontMetricsPS.cpp @@ -58,6 +58,8 @@ #endif #include "nsAutoBuffer.h" +const PRUint16 nsPSFontGenerator::kSubFontSize = 255; + extern nsIAtom *gUsersLocale; #define NS_IS_BOLD(weight) ((weight) > 400 ? 1 : 0) diff --git a/gfx/src/ps/nsFontMetricsPS.h b/gfx/src/ps/nsFontMetricsPS.h index 0c84cec3a41..49d38e2042d 100644 --- a/gfx/src/ps/nsFontMetricsPS.h +++ b/gfx/src/ps/nsFontMetricsPS.h @@ -458,7 +458,7 @@ public: nsString *GetSubset(); // 256 (PS type 1 encoding vector size) - 1 (1 is for mandatory /.notdef) - const static PRUint16 kSubFontSize = 255; + const static PRUint16 kSubFontSize; protected: // XXX To support non-BMP characters, we may have to use