bug 623974 - use GDI aliased spacing in DW when ClearType is off. r=bas a=joe
authorJonathan Kew <jfkthame@gmail.com>
Wed, 12 Jan 2011 10:34:11 +0000
changeset 60381 6d621e3fc42e74c055ef2ac2b4dff7979a732016
parent 60380 847b7c31b8a56487d59cbfc91f54ecba119bea28
child 60382 0bf8fd59c836a393bd9fb3f69feff5d567070da9
push id17958
push userjkew@mozilla.com
push dateWed, 12 Jan 2011 10:34:55 +0000
treeherdermozilla-central@6d621e3fc42e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, joe
bugs623974
milestone2.0b10pre
first release with
nightly win64
6d621e3fc42e / 4.0b10pre / 20110112074539 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
bug 623974 - use GDI aliased spacing in DW when ClearType is off. r=bas a=joe
gfx/thebes/gfxDWriteFonts.cpp
gfx/thebes/gfxDWriteShaper.cpp
--- a/gfx/thebes/gfxDWriteFonts.cpp
+++ b/gfx/thebes/gfxDWriteFonts.cpp
@@ -489,17 +489,17 @@ gfxDWriteFont::GetHintedGlyphWidth(gfxCo
 
     PRInt32 width;
     if (mGlyphWidths.Get(aGID, &width)) {
         return width;
     }
 
     DWRITE_GLYPH_METRICS glyphMetrics;
     HRESULT hr = mFontFace->GetGdiCompatibleGlyphMetrics(
-                  GetAdjustedSize(), 1.0f, nsnull, TRUE,
+                  GetAdjustedSize(), 1.0f, nsnull, FALSE,
                   &aGID, 1, &glyphMetrics, FALSE);
 
     if (NS_SUCCEEDED(hr)) {
         width = NS_lround(glyphMetrics.advanceWidth * mFUnitsConvFactor) << 16;
         mGlyphWidths.Put(aGID, width);
         return width;
     }
 
--- a/gfx/thebes/gfxDWriteShaper.cpp
+++ b/gfx/thebes/gfxDWriteShaper.cpp
@@ -183,17 +183,17 @@ trymoreglyphs:
                                               range.Length(),
                                               indices.Elements(),
                                               glyphProperties.Elements(),
                                               actualGlyphs,
                                               font->GetFontFace(),
                                               font->GetAdjustedSize(),
                                               1.0,
                                               nsnull,
-                                              TRUE,
+                                              FALSE,
                                               FALSE,
                                               FALSE,
                                               &runHead->mScript,
                                               NULL,
                                               NULL,
                                               NULL,
                                               0,
                                               advances.Elements(),