aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/PlatGTK.cxx7
-rw-r--r--include/Platform.h3
2 files changed, 6 insertions, 4 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index bfd5166c5..18d0ea8bd 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -645,7 +645,8 @@ Font::Font() : id(0) {}
Font::~Font() {}
-void Font::Create(const char *faceName, int characterSet, int size, bool bold, bool italic) {
+void Font::Create(const char *faceName, int characterSet, int size,
+ bool bold, bool italic, bool) {
Release();
id = FontCached::FindOrCreate(faceName, characterSet, size, bold, italic);
}
@@ -1169,7 +1170,7 @@ void SurfaceImpl::DrawTextBase(PRectangle rc, Font &font_, int ybase, const char
bool draw8bit = true;
if (et != singleByte) {
GdkWChar wctext[maxLengthTextRun];
- if (len >= maxLengthTextRun)
+ if (len >= maxLengthTextRun)
len = maxLengthTextRun-1;
int wclen;
if (et == UTF8) {
@@ -1331,7 +1332,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positi
bool measure8bit = true;
if (et != singleByte) {
GdkWChar wctext[maxLengthTextRun];
- if (len >= maxLengthTextRun)
+ if (len >= maxLengthTextRun)
len = maxLengthTextRun-1;
int wclen;
if (et == UTF8) {
diff --git a/include/Platform.h b/include/Platform.h
index eae194d52..99daf98ba 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -279,7 +279,8 @@ public:
Font();
virtual ~Font();
- virtual void Create(const char *faceName, int characterSet, int size, bool bold, bool italic);
+ virtual void Create(const char *faceName, int characterSet, int size,
+ bool bold, bool italic, bool extraFontFlag=false);
virtual void Release();
FontID GetID() { return id; }