diff options
author | halcanary <halcanary@google.com> | 2016-05-03 10:18:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-03 10:18:30 -0700 |
commit | 5441e9f8eb23e4c019e4978db4f225a48d4e7b43 (patch) | |
tree | 517f3898b54a9c12cd8d332ae6ba9ad89f84f578 /site/user/tips.md | |
parent | 308febaebd7048041ecd3ef4487e893238119d08 (diff) |
Documentation: Skia+Harfbuzz example
BUG=skia:4742
NOTRY=true
DOCS_PREVIEW= https://skia.org/user/tips?cl=1939123002#kerning
Review-Url: https://codereview.chromium.org/1939123002
Diffstat (limited to 'site/user/tips.md')
-rw-r--r-- | site/user/tips.md | 9 |
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> |