Changeset 239539 in webkit


Ignore:
Timestamp:
Dec 22, 2018 4:33:52 AM (5 years ago)
Author:
Carlos Garcia Campos
Message:

[HarfBuzz] Width not correctly reported as 0 for zero font size
https://bugs.webkit.org/show_bug.cgi?id=192986

Reviewed by Michael Catanzaro.

Fixes test fast/text/font-size-zero.html

  • platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:

(WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Use empty advances for glyphs when the font
size is zero.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r239535 r239539  
     12018-12-22  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [HarfBuzz] Width not correctly reported as 0 for zero font size
     4        https://bugs.webkit.org/show_bug.cgi?id=192986
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Fixes test fast/text/font-size-zero.html
     9
     10        * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:
     11        (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Use empty advances for glyphs when the font
     12        size is zero.
     13
    1142018-12-20  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    215
  • trunk/Source/WebCore/platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp

    r239427 r239539  
    157157
    158158        uint16_t glyph = glyphInfos[i].codepoint;
    159         if (m_font.isZeroWidthSpaceGlyph(glyph)) {
     159        if (m_font.isZeroWidthSpaceGlyph(glyph) || !m_font.platformData().size()) {
    160160            m_glyphs[i] = glyph;
    161161            m_baseAdvances[i] = { };
Note: See TracChangeset for help on using the changeset viewer.