Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1526)

Unified Diff: Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp

Issue 69513002: Implement TrueType kerning support for HarfBuzz text path. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix layout tests Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp
diff --git a/Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp b/Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp
index e81ba594af5d892e0d5d91861c8970e6d3dd96c4..a8c120f2984cf0a36ec8d4105a6575d2ec9dcdf3 100644
--- a/Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp
+++ b/Source/core/platform/graphics/harfbuzz/HarfBuzzFaceCoreText.cpp
@@ -85,7 +85,7 @@ static hb_bool_t getGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint
return true;
}
-static hb_font_funcs_t* harfBuzzCoreTextGetFontFuncs()
+static hb_font_funcs_t* harfBuzzCoreTextGetFontFuncs(const TypesettingFeatures&)
{
static hb_font_funcs_t* harfBuzzCoreTextFontFuncs = 0;
@@ -129,10 +129,10 @@ hb_face_t* HarfBuzzFace::createFace()
return face;
}
-hb_font_t* HarfBuzzFace::createFont()
+hb_font_t* HarfBuzzFace::createFont(const TypesettingFeatures& features)
{
hb_font_t* font = hb_font_create(m_face);
- hb_font_set_funcs(font, harfBuzzCoreTextGetFontFuncs(), m_platformData, 0);
+ hb_font_set_funcs(font, harfBuzzCoreTextGetFontFuncs(features), m_platformData, 0);
const float size = m_platformData->m_size;
hb_font_set_ppem(font, size, size);
const int scale = (1 << 16) * static_cast<int>(size);

Powered by Google App Engine
This is Rietveld 408576698