skia2/modules/svg/BUILD.gn
Florin Malita 7dc984aff0 [svg] Text shaping and layout
Introduce proper text shaping via SkShaper/drawTextBlob (to replace
SkTextUtils::DrawString).

Also add basic text layout support (text chunk alignment and default
fragment advances -- see [1]).

[1] https://www.w3.org/TR/SVG11/text.html#TextLayoutIntroduction

Bug: skia:10840
Change-Id: I246f899d2926d1e365dac06b414c8e1ab4371e1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341736
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Tyler Denniston <tdenniston@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2020-12-08 20:48:43 +00:00

47 lines
924 B
Plaintext

# Copyright 2020 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../gn/skia.gni")
if (skia_enable_svg) {
config("public_config") {
defines = [ "SK_ENABLE_SVG" ]
include_dirs = [ "include" ]
}
component("svg") {
check_includes = false
import("svg.gni")
public_configs = [ ":public_config" ]
public = skia_svg_public
sources = skia_svg_sources
configs += [ "../../:skia_private" ]
deps = [
"../..:skia",
"../skshaper",
]
}
if (skia_enable_tools && defined(is_skia_standalone)) {
source_set("tool") {
check_includes = false
testonly = true
configs += [ "../..:skia_private" ]
sources = [ "utils/SvgTool.cpp" ]
deps = [
"../..:flags",
"../..:skia",
]
public_deps = [ ":svg" ]
}
}
} else {
group("svg") {
}
}