2012-07-27 20:39:19 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "gm.h"
|
2017-03-22 17:47:51 +00:00
|
|
|
#include "sk_tool_utils.h"
|
2016-07-06 18:55:05 +00:00
|
|
|
#include "Resources.h"
|
2018-05-10 19:24:20 +00:00
|
|
|
#include "SkBlurTypes.h"
|
2012-07-27 20:39:19 +00:00
|
|
|
#include "SkCanvas.h"
|
2017-07-27 14:45:29 +00:00
|
|
|
#include "SkFontStyle.h"
|
2018-05-10 19:24:20 +00:00
|
|
|
#include "SkMaskFilter.h"
|
2012-07-27 20:39:19 +00:00
|
|
|
#include "SkString.h"
|
2016-07-06 18:55:05 +00:00
|
|
|
#include "SkSurfaceProps.h"
|
2012-07-27 20:39:19 +00:00
|
|
|
#include "SkTypeface.h"
|
|
|
|
#include "SkTypes.h"
|
|
|
|
|
2013-10-30 15:07:03 +00:00
|
|
|
static void getGlyphPositions(const SkPaint& paint, const uint16_t glyphs[],
|
|
|
|
int count, SkScalar x, SkScalar y, SkPoint pos[]) {
|
|
|
|
SkASSERT(SkPaint::kGlyphID_TextEncoding == paint.getTextEncoding());
|
|
|
|
|
|
|
|
SkAutoSTMalloc<128, SkScalar> widthStorage(count);
|
|
|
|
SkScalar* widths = widthStorage.get();
|
|
|
|
paint.getTextWidths(glyphs, count * sizeof(uint16_t), widths);
|
2013-10-31 07:01:53 +00:00
|
|
|
|
2013-10-30 15:07:03 +00:00
|
|
|
for (int i = 0; i < count; ++i) {
|
|
|
|
pos[i].set(x, y);
|
|
|
|
x += widths[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void applyKerning(SkPoint pos[], const int32_t adjustments[], int count,
|
|
|
|
const SkPaint& paint) {
|
|
|
|
SkScalar scale = paint.getTextSize() / paint.getTypeface()->getUnitsPerEm();
|
|
|
|
|
|
|
|
SkScalar globalAdj = 0;
|
|
|
|
for (int i = 0; i < count - 1; ++i) {
|
|
|
|
globalAdj += adjustments[i] * scale;
|
|
|
|
pos[i + 1].fX += globalAdj;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void drawKernText(SkCanvas* canvas, const void* text, size_t len,
|
|
|
|
SkScalar x, SkScalar y, const SkPaint& paint) {
|
|
|
|
SkTypeface* face = paint.getTypeface();
|
|
|
|
if (!face) {
|
|
|
|
canvas->drawText(text, len, x, y, paint);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkAutoSTMalloc<128, uint16_t> glyphStorage(len);
|
|
|
|
uint16_t* glyphs = glyphStorage.get();
|
|
|
|
int glyphCount = paint.textToGlyphs(text, len, glyphs);
|
|
|
|
if (glyphCount < 1) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1);
|
|
|
|
int32_t* adjustments = adjustmentStorage.get();
|
|
|
|
if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) {
|
|
|
|
canvas->drawText(text, len, x, y, paint);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
SkPaint glyphPaint(paint);
|
|
|
|
glyphPaint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
|
|
|
|
|
|
|
|
SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount);
|
|
|
|
SkPoint* pos = posStorage.get();
|
|
|
|
getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos);
|
|
|
|
|
|
|
|
applyKerning(pos, adjustments, glyphCount, glyphPaint);
|
|
|
|
canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint);
|
|
|
|
}
|
|
|
|
|
2017-11-14 15:45:32 +00:00
|
|
|
static constexpr SkFontStyle gStyles[] = {
|
|
|
|
SkFontStyle::Normal(),
|
|
|
|
SkFontStyle::Bold(),
|
|
|
|
SkFontStyle::Italic(),
|
|
|
|
SkFontStyle::BoldItalic(),
|
2012-07-27 20:39:19 +00:00
|
|
|
};
|
|
|
|
|
2017-11-14 15:45:32 +00:00
|
|
|
constexpr int gStylesCount = SK_ARRAY_COUNT(gStyles);
|
2013-02-26 16:57:16 +00:00
|
|
|
|
|
|
|
class TypefaceStylesGM : public skiagm::GM {
|
2017-11-14 15:45:32 +00:00
|
|
|
sk_sp<SkTypeface> fFaces[gStylesCount];
|
2013-10-30 15:07:03 +00:00
|
|
|
bool fApplyKerning;
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-02-26 16:57:16 +00:00
|
|
|
public:
|
2018-07-10 23:40:15 +00:00
|
|
|
TypefaceStylesGM(bool applyKerning) : fApplyKerning(applyKerning) {}
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-02-26 16:57:16 +00:00
|
|
|
protected:
|
2015-05-21 13:15:28 +00:00
|
|
|
void onOnceBeforeDraw() override {
|
2017-11-14 15:45:32 +00:00
|
|
|
for (int i = 0; i < gStylesCount; i++) {
|
|
|
|
fFaces[i] = SkTypeface::MakeFromName(nullptr, gStyles[i]);
|
2015-05-21 13:15:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-26 01:17:31 +00:00
|
|
|
SkString onShortName() override {
|
2013-10-30 15:07:03 +00:00
|
|
|
SkString name("typefacestyles");
|
|
|
|
if (fApplyKerning) {
|
|
|
|
name.append("_kerning");
|
|
|
|
}
|
2017-11-13 16:03:16 +00:00
|
|
|
name.append(sk_tool_utils::platform_font_manager());
|
2013-10-30 15:07:03 +00:00
|
|
|
return name;
|
2013-02-26 16:57:16 +00:00
|
|
|
}
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2015-03-26 01:17:31 +00:00
|
|
|
SkISize onISize() override {
|
2013-02-26 16:57:16 +00:00
|
|
|
return SkISize::Make(640, 480);
|
|
|
|
}
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2015-03-26 01:17:31 +00:00
|
|
|
void onDraw(SkCanvas* canvas) override {
|
2013-02-26 16:57:16 +00:00
|
|
|
SkPaint paint;
|
|
|
|
paint.setAntiAlias(true);
|
|
|
|
paint.setTextSize(SkIntToScalar(30));
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-10-30 15:07:03 +00:00
|
|
|
const char* text = fApplyKerning ? "Type AWAY" : "Hamburgefons";
|
2013-02-26 16:57:16 +00:00
|
|
|
const size_t textLen = strlen(text);
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-02-26 16:57:16 +00:00
|
|
|
SkScalar x = SkIntToScalar(10);
|
2015-08-27 14:41:13 +00:00
|
|
|
SkScalar dy = paint.getFontMetrics(nullptr);
|
2013-02-26 16:57:16 +00:00
|
|
|
SkScalar y = dy;
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-10-30 15:07:03 +00:00
|
|
|
if (fApplyKerning) {
|
|
|
|
paint.setSubpixelText(true);
|
|
|
|
} else {
|
|
|
|
paint.setLinearText(true);
|
|
|
|
}
|
2017-11-14 15:45:32 +00:00
|
|
|
for (int i = 0; i < gStylesCount; i++) {
|
2013-02-26 16:57:16 +00:00
|
|
|
paint.setTypeface(fFaces[i]);
|
|
|
|
canvas->drawText(text, textLen, x, y, paint);
|
2013-10-30 15:07:03 +00:00
|
|
|
if (fApplyKerning) {
|
|
|
|
drawKernText(canvas, text, textLen, x + 240, y, paint);
|
|
|
|
}
|
2013-02-26 16:57:16 +00:00
|
|
|
y += dy;
|
|
|
|
}
|
|
|
|
}
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2013-02-26 16:57:16 +00:00
|
|
|
private:
|
|
|
|
typedef skiagm::GM INHERITED;
|
|
|
|
};
|
2013-02-27 07:10:10 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
DEF_GM( return new TypefaceStylesGM(false); )
|
|
|
|
DEF_GM( return new TypefaceStylesGM(true); )
|
2016-07-06 18:55:05 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2016-07-06 18:55:05 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
static void draw_typeface_rendering_gm(SkCanvas* canvas, sk_sp<SkTypeface> face,
|
|
|
|
char character = 'A') {
|
2018-05-10 19:24:20 +00:00
|
|
|
struct AliasType {
|
|
|
|
bool antiAlias;
|
|
|
|
bool subpixelAntitalias;
|
|
|
|
bool inLayer;
|
|
|
|
} constexpr aliasTypes[] {
|
2016-07-13 21:00:39 +00:00
|
|
|
#ifndef SK_BUILD_FOR_IOS
|
2018-05-10 19:24:20 +00:00
|
|
|
// This gm crashes on iOS when drawing an embedded bitmap when requesting aliased rendering.
|
|
|
|
// The crash looks like
|
|
|
|
// libTrueTypeScaler.dylib`<redacted> + 80
|
|
|
|
// stop reason = EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN, address=...)
|
|
|
|
// -> 0x330b19d0 <+80>: strd r2, r3, [r5, #36]
|
|
|
|
// 0x330b19d4 <+84>: movs r3, #0x0
|
|
|
|
// 0x330b19d6 <+86>: add r2, sp, #0x28
|
|
|
|
// 0x330b19d8 <+88>: ldr r0, [r4, #0x4]
|
|
|
|
// Disable testing embedded bitmaps on iOS for now.
|
|
|
|
// See https://bug.skia.org/5530 .
|
|
|
|
{ false, false, false }, // aliased
|
2016-07-13 21:00:39 +00:00
|
|
|
#endif
|
2018-05-10 19:24:20 +00:00
|
|
|
{ true, false, false }, // anti-aliased
|
|
|
|
{ true, true , false }, // subpixel anti-aliased
|
|
|
|
{ true, false, true }, // anti-aliased in layer (flat pixel geometry)
|
|
|
|
{ true, true , true }, // subpixel anti-aliased in layer (flat pixel geometry)
|
|
|
|
};
|
|
|
|
|
|
|
|
// The hintgasp.ttf is designed for the following sizes to be different.
|
|
|
|
// GASP_DOGRAY 0x0002 0<=ppem<=10
|
|
|
|
// GASP_SYMMETRIC_SMOOTHING 0x0008 0<=ppem<=10
|
|
|
|
// GASP_GRIDFIT 0x0001 11<=ppem<=12
|
|
|
|
// GASP_SYMMETRIC_GRIDFIT 0x0004 11<=ppem<=12
|
|
|
|
// GASP_DOGRAY|GASP_GRIDFIT 0x0003 13<=ppem<=14
|
|
|
|
// GASP_SYMMETRIC_SMOOTHING|GASP_SYMMETRIC_GRIDFIT 0x000C 13<=ppem<=14
|
|
|
|
// (neither) 0x0000 15<=ppem
|
|
|
|
// Odd sizes have embedded bitmaps.
|
|
|
|
constexpr SkScalar textSizes[] = { 9, 10, 11, 12, 13, 14, 15, 16 };
|
|
|
|
|
|
|
|
constexpr SkPaint::Hinting hintingTypes[] = { SkPaint::kNo_Hinting,
|
|
|
|
SkPaint::kSlight_Hinting,
|
|
|
|
SkPaint::kNormal_Hinting,
|
|
|
|
SkPaint::kFull_Hinting };
|
|
|
|
|
|
|
|
struct SubpixelType {
|
|
|
|
bool requested;
|
|
|
|
SkVector offset;
|
|
|
|
} constexpr subpixelTypes[] = {
|
|
|
|
{ false, { 0.00, 0.00 } },
|
|
|
|
{ true , { 0.00, 0.00 } },
|
|
|
|
{ true , { 0.25, 0.00 } },
|
|
|
|
{ true , { 0.25, 0.25 } },
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr bool rotateABitTypes[] = { false, true };
|
|
|
|
|
|
|
|
SkScalar y = 0; // The baseline of the previous output
|
|
|
|
{
|
2016-07-06 18:55:05 +00:00
|
|
|
SkPaint paint;
|
2016-09-20 20:11:01 +00:00
|
|
|
paint.setTypeface(face);
|
2016-07-12 13:55:25 +00:00
|
|
|
paint.setEmbeddedBitmapText(true);
|
|
|
|
|
2016-07-06 18:55:05 +00:00
|
|
|
SkScalar x = 0;
|
|
|
|
SkScalar xMax = x;
|
|
|
|
SkScalar xBase = 0;
|
|
|
|
for (const SubpixelType subpixel : subpixelTypes) {
|
|
|
|
y = 0;
|
|
|
|
paint.setSubpixelText(subpixel.requested);
|
|
|
|
|
|
|
|
for (const AliasType& alias : aliasTypes) {
|
|
|
|
paint.setAntiAlias(alias.antiAlias);
|
|
|
|
paint.setLCDRenderText(alias.subpixelAntitalias);
|
|
|
|
SkAutoCanvasRestore acr(canvas, false);
|
|
|
|
if (alias.inLayer) {
|
|
|
|
canvas->saveLayer(nullptr, &paint);
|
|
|
|
}
|
|
|
|
|
|
|
|
for (const SkScalar& textSize : textSizes) {
|
|
|
|
x = xBase + 5;
|
|
|
|
paint.setTextSize(textSize);
|
|
|
|
|
|
|
|
SkScalar dy = SkScalarCeilToScalar(paint.getFontMetrics(nullptr));
|
|
|
|
y += dy;
|
|
|
|
for (const SkPaint::Hinting& hinting : hintingTypes) {
|
|
|
|
paint.setHinting(hinting);
|
|
|
|
|
|
|
|
for (const bool& rotateABit : rotateABitTypes) {
|
|
|
|
SkAutoCanvasRestore acr(canvas, true);
|
|
|
|
if (rotateABit) {
|
2016-07-12 22:01:19 +00:00
|
|
|
canvas->rotate(2, x + subpixel.offset.x(),
|
|
|
|
y + subpixel.offset.y());
|
2016-07-06 18:55:05 +00:00
|
|
|
}
|
2018-05-10 19:24:20 +00:00
|
|
|
canvas->drawText(&character, 1, x + subpixel.offset.x(),
|
|
|
|
y + subpixel.offset.y(), paint);
|
2016-07-06 18:55:05 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
SkScalar dx = SkScalarCeilToScalar(
|
|
|
|
paint.measureText(&character, 1)) + 5;
|
2016-07-06 18:55:05 +00:00
|
|
|
x += dx;
|
|
|
|
xMax = SkTMax(x, xMax);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
y += 10;
|
|
|
|
}
|
|
|
|
xBase = xMax;
|
|
|
|
}
|
2018-05-10 19:24:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
constexpr struct StyleTests {
|
|
|
|
SkPaint::Style style;
|
|
|
|
SkScalar strokeWidth;
|
|
|
|
} styleTypes[] = {
|
|
|
|
{ SkPaint::kFill_Style, 0.0f},
|
|
|
|
{ SkPaint::kStroke_Style, 0.0f},
|
|
|
|
{ SkPaint::kStroke_Style, 0.5f},
|
|
|
|
{ SkPaint::kStrokeAndFill_Style, 1.0f},
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr bool fakeBoldTypes[] = { false, true };
|
|
|
|
|
|
|
|
{
|
|
|
|
SkPaint paint;
|
|
|
|
paint.setTypeface(face);
|
|
|
|
paint.setTextSize(16);
|
|
|
|
|
|
|
|
SkScalar x = 0;
|
|
|
|
for (const bool& fakeBold : fakeBoldTypes) {
|
|
|
|
SkScalar dy = SkScalarCeilToScalar(paint.getFontMetrics(nullptr));
|
|
|
|
y += dy;
|
|
|
|
x = 5;
|
|
|
|
|
|
|
|
paint.setFakeBoldText(fakeBold);
|
|
|
|
for (const AliasType& alias : aliasTypes) {
|
|
|
|
paint.setAntiAlias(alias.antiAlias);
|
|
|
|
paint.setLCDRenderText(alias.subpixelAntitalias);
|
|
|
|
SkAutoCanvasRestore acr(canvas, false);
|
|
|
|
if (alias.inLayer) {
|
|
|
|
canvas->saveLayer(nullptr, &paint);
|
|
|
|
}
|
|
|
|
for (const StyleTests& style : styleTypes) {
|
|
|
|
paint.setStyle(style.style);
|
|
|
|
paint.setStrokeWidth(style.strokeWidth);
|
|
|
|
canvas->drawText(&character, 1, x, y, paint);
|
|
|
|
|
|
|
|
SkScalar dx = SkScalarCeilToScalar(paint.measureText(&character, 1)) + 5;
|
|
|
|
x += dx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
y += 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
constexpr struct MaskTests {
|
|
|
|
SkBlurStyle style;
|
|
|
|
SkScalar sigma;
|
|
|
|
} maskTypes[] = {
|
|
|
|
{ SkBlurStyle::kNormal_SkBlurStyle, 0.0f},
|
|
|
|
{ SkBlurStyle::kSolid_SkBlurStyle, 0.0f},
|
|
|
|
{ SkBlurStyle::kOuter_SkBlurStyle, 0.0f},
|
|
|
|
{ SkBlurStyle::kInner_SkBlurStyle, 0.0f},
|
|
|
|
|
|
|
|
{ SkBlurStyle::kNormal_SkBlurStyle, 0.5f},
|
|
|
|
{ SkBlurStyle::kSolid_SkBlurStyle, 0.5f},
|
|
|
|
{ SkBlurStyle::kOuter_SkBlurStyle, 0.5f},
|
|
|
|
{ SkBlurStyle::kInner_SkBlurStyle, 0.5f},
|
|
|
|
|
|
|
|
{ SkBlurStyle::kNormal_SkBlurStyle, 2.0f},
|
|
|
|
{ SkBlurStyle::kSolid_SkBlurStyle, 2.0f},
|
|
|
|
{ SkBlurStyle::kOuter_SkBlurStyle, 2.0f},
|
|
|
|
{ SkBlurStyle::kInner_SkBlurStyle, 2.0f},
|
|
|
|
};
|
|
|
|
|
|
|
|
{
|
|
|
|
SkPaint paint;
|
|
|
|
paint.setTypeface(face);
|
|
|
|
paint.setTextSize(16);
|
|
|
|
|
|
|
|
SkScalar x = 0;
|
|
|
|
{
|
|
|
|
for (const AliasType& alias : aliasTypes) {
|
|
|
|
SkScalar dy = SkScalarCeilToScalar(paint.getFontMetrics(nullptr));
|
|
|
|
y += dy;
|
|
|
|
x = 5;
|
|
|
|
|
|
|
|
paint.setAntiAlias(alias.antiAlias);
|
|
|
|
paint.setLCDRenderText(alias.subpixelAntitalias);
|
|
|
|
SkAutoCanvasRestore acr(canvas, false);
|
|
|
|
if (alias.inLayer) {
|
|
|
|
canvas->saveLayer(nullptr, &paint);
|
|
|
|
}
|
|
|
|
for (const MaskTests& mask : maskTypes) {
|
|
|
|
paint.setMaskFilter(SkMaskFilter::MakeBlur(mask.style, mask.sigma));
|
|
|
|
canvas->drawText(&character, 1, x, y, paint);
|
|
|
|
|
|
|
|
SkScalar dx = SkScalarCeilToScalar(paint.measureText(&character, 1)) + 5;
|
|
|
|
x += dx;
|
|
|
|
}
|
|
|
|
paint.setMaskFilter(nullptr);
|
|
|
|
}
|
|
|
|
y += 10;
|
|
|
|
}
|
|
|
|
}
|
2016-09-20 20:11:01 +00:00
|
|
|
}
|
|
|
|
|
2018-05-10 19:24:20 +00:00
|
|
|
DEF_SIMPLE_GM_BG_NAME(typefacerendering, canvas, 640, 840, SK_ColorWHITE,
|
2016-09-20 20:11:01 +00:00
|
|
|
SkStringPrintf("typefacerendering%s",
|
2017-11-13 16:03:16 +00:00
|
|
|
sk_tool_utils::platform_font_manager())) {
|
2017-12-08 19:25:14 +00:00
|
|
|
if (sk_sp<SkTypeface> face = MakeResourceAsTypeface("fonts/hintgasp.ttf")) {
|
2016-09-20 20:11:01 +00:00
|
|
|
draw_typeface_rendering_gm(canvas, std::move(face));
|
2016-07-06 18:55:05 +00:00
|
|
|
}
|
2016-09-20 20:11:01 +00:00
|
|
|
}
|
2016-07-06 18:55:05 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
// Type1 fonts don't currently work in Skia on Windows.
|
|
|
|
#ifndef SK_BUILD_FOR_WIN
|
|
|
|
|
2018-05-10 19:24:20 +00:00
|
|
|
DEF_SIMPLE_GM_BG_NAME(typefacerendering_pfa, canvas, 640, 840, SK_ColorWHITE,
|
2016-09-20 20:11:01 +00:00
|
|
|
SkStringPrintf("typefacerendering_pfa%s",
|
2017-11-13 16:03:16 +00:00
|
|
|
sk_tool_utils::platform_font_manager())) {
|
2016-09-20 20:11:01 +00:00
|
|
|
if (sk_sp<SkTypeface> face = MakeResourceAsTypeface("fonts/Roboto2-Regular.pfa")) {
|
|
|
|
// This subsetted typeface doesn't have the character 'A'.
|
|
|
|
draw_typeface_rendering_gm(canvas, std::move(face), 'O');
|
|
|
|
}
|
|
|
|
}
|
2016-07-06 18:55:05 +00:00
|
|
|
|
2018-05-10 19:24:20 +00:00
|
|
|
DEF_SIMPLE_GM_BG_NAME(typefacerendering_pfb, canvas, 640, 840, SK_ColorWHITE,
|
2016-09-20 20:11:01 +00:00
|
|
|
SkStringPrintf("typefacerendering_pfb%s",
|
2017-11-13 16:03:16 +00:00
|
|
|
sk_tool_utils::platform_font_manager())) {
|
2016-09-20 20:11:01 +00:00
|
|
|
if (sk_sp<SkTypeface> face = MakeResourceAsTypeface("fonts/Roboto2-Regular.pfb")) {
|
|
|
|
draw_typeface_rendering_gm(canvas, std::move(face), 'O');
|
|
|
|
}
|
|
|
|
}
|
2012-07-27 20:39:19 +00:00
|
|
|
|
2016-09-20 20:11:01 +00:00
|
|
|
#endif
|