Changeset 49937 in webkit
- Timestamp:
- Oct 22, 2009 4:52:52 AM (15 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r49933 r49937 1 2009-10-22 Maxime Simon <simon.maxime@gmail.com> 2 3 Reviewed by Holger Freyther. 4 5 [Haiku] Correction of the accented letter width (they were 2 characters long). 6 https://bugs.webkit.org/show_bug.cgi?id=30629 7 8 * platform/graphics/haiku/SimpleFontDataHaiku.cpp: 9 (WebCore::SimpleFontData::platformWidthForGlyph): 10 1 11 2009-10-21 Jon Honeycutt <jhoneycutt@apple.com> 2 12 -
trunk/WebCore/platform/graphics/haiku/SimpleFontDataHaiku.cpp
r47637 r49937 39 39 #include <unicode/unorm.h> 40 40 41 42 extern int charUnicodeToUTF8HACK(unsigned short, char*); 41 43 42 44 namespace WebCore { … … 94 96 float SimpleFontData::platformWidthForGlyph(Glyph glyph) const 95 97 { 96 const char charArray[1] = { glyph }; 98 if (!m_platformData.font()) 99 return 0; 100 101 char charArray[4]; 97 102 float escapements[1]; 98 103 99 if (m_platformData.font()) { 100 m_platformData.font()->GetEscapements(charArray, 1, escapements); 101 return escapements[0] * m_platformData.font()->Size(); 102 } 103 104 return 0; 104 charUnicodeToUTF8HACK(glyph, charArray); 105 m_platformData.font()->GetEscapements(charArray, 1, escapements); 106 return escapements[0] * m_platformData.font()->Size(); 105 107 } 106 108
Note: See TracChangeset
for help on using the changeset viewer.