提交 608e34db 编写于 作者: A Adam Barth

Fix build

上级 a126207c
......@@ -31,6 +31,7 @@
#include "base/logging.h"
#include "sky/engine/platform/fonts/FontPlatformData.h"
#include "sky/engine/platform/fonts/FontCache.h"
#include "third_party/skia/include/core/SkTypeface.h"
namespace blink {
......@@ -43,7 +44,7 @@ void FontPlatformData::setupPaint(SkPaint* paint,
paint->setEmbeddedBitmapText(false);
const float ts = m_textSize >= 0 ? m_textSize : 12;
paint->setTextSize(SkFloatToScalar(ts));
paint->setTypeface(typeface());
paint->setTypeface(m_typeface);
paint->setFakeBoldText(m_syntheticBold);
paint->setTextSkewX(m_syntheticItalic ? -SK_Scalar1 / 4 : 0);
paint->setAutohinted(false); // freetype specific
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册