Go to file
Ben Wagner 03cd6e6dec Avoid serializing to 'typ1' on Mac.
CoreGraphics does not provide a means to get the original font data for a
CGFont, only the tables. As a result, Skia pieces the font data back
together when requested. The most awkward part of this is choosing the
first four bytes, and the CTFont suggestion seems to often be wrong.

This change doublechecks the selection of 'typ1', prefering to use 'OTTO'
if there are no 'TYP1' or 'CID ' tables. These sorts of fonts are
extremely old and unlikely to be in current use. It appears that CTFont
may report that it has this format if it is an 'OTTO' font with very few
glyphs. If Skia serializes such a font with 'typ1' as the first four
bytes, CoreGraphics will not create a CGFont from the resulting font data.

BUG=chromium:809763,skia:7630

Change-Id: I9979b9f0ebdd27c4ad0903e8ee6237241e755541
Reviewed-on: https://skia-review.googlesource.com/113306
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2018-03-09 15:03:20 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Revert "Remove attach and detach glyph cache." 2018-03-07 18:05:51 +00:00
bin remove fetch-gn dependency on buildtools 2018-02-21 20:42:26 +00:00
debugger Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
dm Move internal calls from GrContext to GrContextPriv 2018-03-06 14:23:45 +00:00
docs work in imageinfo and phrase substitution 2018-03-05 18:48:15 +00:00
example Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
experimental [skottie] Reduce parser verbosity 2018-03-07 22:34:20 +00:00
fuzz Fix a tiny typo 2018-03-01 14:52:04 +00:00
gm add TrimPathEffect 2018-03-07 22:32:20 +00:00
gn Add ability to uninstantiate lazy proxies after every flush. 2018-03-08 21:05:21 +00:00
include Change behavior of custom image serial/deserial 2018-03-08 21:50:51 +00:00
infra Remove SKQP bots from master 2018-03-09 13:15:00 +00:00
platform_tools Viewer/Amdroid: universal build, resources in APK 2018-03-06 22:52:10 +00:00
resources Avoid serializing to 'typ1' on Mac. 2018-03-09 15:03:20 +00:00
samplecode Revert "ccpr: Draw curves in a single pass" 2018-03-08 15:56:02 +00:00
site Reland "Reland "make SkJumper stages normal Skia code"" 2018-03-07 17:32:40 +00:00
src Avoid serializing to 'typ1' on Mac. 2018-03-09 15:03:20 +00:00
tests Avoid serializing to 'typ1' on Mac. 2018-03-09 15:03:20 +00:00
third_party Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
tools Remove GrRestrictedAtlasManager 2018-03-08 14:29:11 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fix assert format string in GrContext_colorTypeSupportedAsImage test. 2018-02-26 17:02:38 +00:00
BUILD.gn Initial texture data is never flipped when uploaded. 2018-03-07 18:22:40 +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 skia/third_party/externals/angle2/ 80964f97e..e8a93c6ed (1 commit) 2018-03-09 08:39:17 +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
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Presubmit that modified json files are valid json. 2018-02-12 16:32:12 +00:00
public.bzl Remove dm excludes from public.bzl. 2018-03-07 15:57:40 +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 Test change 2018-02-15 17:46:19 +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.