aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/user/tips.md
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-03 10:18:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-03 10:18:30 -0700
commit5441e9f8eb23e4c019e4978db4f225a48d4e7b43 (patch)
tree517f3898b54a9c12cd8d332ae6ba9ad89f84f578 /site/user/tips.md
parent308febaebd7048041ecd3ef4487e893238119d08 (diff)
Documentation: Skia+Harfbuzz example
Diffstat (limited to 'site/user/tips.md')
-rw-r--r--site/user/tips.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/site/user/tips.md b/site/user/tips.md
index 25686dff9a..197bd6411c 100644
--- a/site/user/tips.md
+++ b/site/user/tips.md
@@ -167,6 +167,13 @@ text shaper. Skia's client's often use
[HarfBuzz](http://www.freedesktop.org/wiki/Software/HarfBuzz/) to
generate the glyphs and their positions, including kerning.
+[Here is an example of how to use Skia and HarfBuzz
+together](https://github.com/aam/skiaex). In the example, a
+`SkTypeface` and a `hb_face_t` are created using the same `mmap()`ed
+`.ttf` font file. The HarfBuzz face is used to shape unicode text into
+a sequence of glyphs and positions, and the SkTypeface can then be
+used to draw those glyphs.
+
* * *
<span id="text-shadow"></span>
@@ -200,4 +207,6 @@ How do I add drop shadow on text?
<a href='https://fiddle.skia.org/c/@text_shadow'><img src='https://fiddle.skia.org/i/@text_shadow_raster.png'></a>
+* * *
+
<div style="margin-bottom:99%"></div>