Go to file
Ben Wagner 6cdb5f2ad7 Clip FreeType glyph bitmap to mask.
Skia has for some time assumed that when using FT_Render_Glyph with one
of the LCD render modes that one extra pixel would be applied to each
side of the resulting bitmap. FreieType has changed to make this more
conservative when possible, so the pre-allocated SkMask and the generated
FT_Bitmap may no longer agree on the size and origin.

This change ensures the SkMask and FT_Bitmap are the same size and their
origins align. This is not an ideal long term fix, but is both simple and
localized for easy and quick back-porting, should that become necessary.

BUG=skia:6663

Change-Id: I49ec8f45376be8d867e8aef54eab79537731c310
Reviewed-on: https://skia-review.googlesource.com/20327
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2017-06-23 13:42:58 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Revert[2] "use rasterpipeline for non-8888-clamp shaders (so we can delete more legacy code)"" 2017-06-22 01:56:30 +00:00
bin bin/fetch-clang-format 2017-03-08 16:43:49 +00:00
debugger Retract GrTexture*.h & GrRenderTarget*.h from other headers 2017-06-13 17:21:41 +00:00
dm Enable SVG DM sources for vector sinks 2017-06-16 20:04:14 +00:00
example Revert "Revert "Plumb the use of GrBackendRenderTarget throughout Skia"" 2017-05-01 14:14:50 +00:00
experimental Retract GrTexture*.h & GrRenderTarget*.h from other headers 2017-06-13 17:21:41 +00:00
fuzz remove unused mode parameter from SkMergeImageFilter 2017-06-19 14:01:56 +00:00
gm fix repeat/mirror sampling bleed 2017-06-22 19:46:51 +00:00
gn fix repeat/mirror sampling bleed 2017-06-22 19:46:51 +00:00
include Revert "Revert "remove unused api on xfermodeimagefilter"" 2017-06-20 17:26:39 +00:00
infra Blacklist TransferPixelsTest on NVIDIA Shield 2017-06-22 17:20:30 +00:00
platform_tools Enable ios on Raspberry Pi 2017-04-25 16:56:41 +00:00
resources Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
samplecode Fix WavyPathText sample 2017-06-21 05:32:30 +00:00
site Broken link in Tree Sheriffs Documentation 2017-06-09 17:56:14 +00:00
src Clip FreeType glyph bitmap to mask. 2017-06-23 13:42:58 +00:00
tests Remove static initializer restriction for Vulkan tests 2017-06-22 18:12:30 +00:00
third_party Roll ANGLE 2017-06-12 16:00:07 +00:00
tools Revert "Revert "Clean up onTransferPixels"" 2017-06-22 13:14:01 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore [infra] Move Android and GPU maps into gen_tasks.go. 2017-06-14 13:17:43 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Added support for building for tvOS 2017-03-14 22:55:04 +00:00
BUILD.gn Revert "Revert "Update skia to use ifdefs for Vulkan code instead of dummy header"" 2017-06-14 01:43:38 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll ANGLE 2017-06-22 12:46:04 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
PRESUBMIT.py Use Gerrit style format for footers in Presubmit 2017-05-23 20:44:36 +00:00
public.bzl remove SkImageEncoder_none.cpp 2017-06-21 14:52:30 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Marker for Win AMD driver update. 2017-05-22 17:21:14 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.