[FreeType] Unable to render some Hebrew characters
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Feb 2019 09:10:13 +0000 (09:10 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Feb 2019 09:10:13 +0000 (09:10 +0000)
commit3ce109bcc19ddb33f63ac7238e9dcd789c0ab7b6
tree1fa5015fdefe2ed4cdf2fca75d54755fd2197b4e
parente1abedd66ffdd9bf3d00a1d919a7d7b24fc3ce42
[FreeType] Unable to render some Hebrew characters
https://bugs.webkit.org/show_bug.cgi?id=194498

Reviewed by Michael Catanzaro.

We are failing to find a font for some of the combining character sequences because normalization is failing due
to overflow error. In case of overflow, normalize returns the required length for the normalized characters, so
we should handle that case to resize the output buffer and try again.

* platform/graphics/cairo/FontCairoHarfbuzzNG.cpp:
(WebCore::FontCascade::fontForCombiningCharacterSequence const):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cairo/FontCairoHarfbuzzNG.cpp