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

Unified Diff: Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp

Issue 546973004: Revert 181541 "Merge FontPlatformDataHarfBuzz and FontPlatformData headers" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months 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/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp
diff --git a/Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp b/Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp
index 1fc421565b0f706855be788a493cfde0c429ae2c..eddd617cb836d55feeb5254e3b1d47858f8745de 100644
--- a/Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp
+++ b/Source/platform/fonts/harfbuzz/HarfBuzzFaceCoreText.cpp
@@ -133,7 +133,7 @@ hb_font_t* HarfBuzzFace::createFont()
{
hb_font_t* font = hb_font_create(m_face);
hb_font_set_funcs(font, harfBuzzCoreTextGetFontFuncs(), m_platformData, 0);
- const float size = m_platformData->m_textSize;
+ const float size = m_platformData->m_size;
hb_font_set_ppem(font, size, size);
const int scale = (1 << 16) * static_cast<int>(size);
hb_font_set_scale(font, scale, scale);
« no previous file with comments | « Source/platform/fonts/harfbuzz/FontPlatformDataHarfBuzz.cpp ('k') | Source/platform/fonts/linux/FontPlatformDataLinux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698