a62d036586
Prev behavior available via utils SkDrawTextOnPath Bug: skia:7554 Change-Id: I3d71963c632cc947e418757bb83cdc18ec3b184e Reviewed-on: https://skia-review.googlesource.com/150123 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
29 lines
862 B
C++
29 lines
862 B
C++
/*
|
|
* Copyright 2018 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkTextOnPath_DEFINED
|
|
#define SkTextOnPath_DEFINED
|
|
|
|
#include "SkTypes.h"
|
|
|
|
class SkCanvas;
|
|
class SkMatrix;
|
|
class SkPath;
|
|
|
|
void SkVisitTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
|
|
const SkPath& follow, const SkMatrix* matrix,
|
|
const std::function<void(const SkPath&)>& visitor);
|
|
|
|
void SkDrawTextOnPath(const void* text, size_t byteLength, const SkPaint& paint,
|
|
const SkPath& follow, const SkMatrix* matrix, SkCanvas* canvas);
|
|
|
|
void SkDrawTextOnPathHV(const void* text, size_t byteLength, const SkPaint& paint,
|
|
const SkPath& follow, SkScalar hOffset, SkScalar vOffset, SkCanvas* canvas);
|
|
|
|
#endif
|
|
|