Index: Source/platform/fonts/SimpleFontData.cpp |
diff --git a/Source/platform/fonts/SimpleFontData.cpp b/Source/platform/fonts/SimpleFontData.cpp |
index 34b5a2c45616abb8483889f0687f279cf6cad0d1..823055e8f588a86557d1c40ace63c8e25a3e009d 100644 |
--- a/Source/platform/fonts/SimpleFontData.cpp |
+++ b/Source/platform/fonts/SimpleFontData.cpp |
@@ -283,7 +283,7 @@ void SimpleFontData::platformGlyphInit() |
// Nasty hack to determine if we should round or ceil space widths. |
// If the font is monospace or fake monospace we ceil to ensure that |
// every character and the space are the same width. Otherwise we round. |
- m_spaceGlyph = glyphPageZero->glyphForCharacter(space); |
+ m_spaceGlyph = glyphPageZero->glyphForCharacter(spaceCharacter); |
float width = widthForGlyph(m_spaceGlyph); |
m_spaceWidth = width; |
m_zeroGlyph = glyphPageZero->glyphForCharacter('0'); |