Go to file
Ben Wagner 6112f0b068 Detect macOS font smoothing behavior.
In macOS 14 the font smoothing behavior was changed. On macOS 13 and lower
requesting smoothing would either do nothing or apply fake bolding and
subpixel coverage, depending on a user setting. On macOS 14 this same user
setting causes smoothing to either do nothing or apply fake bolding. Skia
had been checking for subpixel coverage to know whether to ask for
smoothing, but since subpixel coverage is no longer provided Skia won't
ask for smoothing. However, some still want to see the fake bolding.

This changes behavior in Skia to detect if requesting smoothing does not
change the rendering, if it changes the rendering, or if it changes the
rendering and applies subpixel coverage. The code which conflated the
changing of rendering and subpixel coverage is updated to check for the
appropriate conditions.

This has the odd effect of making the setLCDRenderText setting in Skia on
macOS 14 not actually turn on subpixel coverage but instead apply
fake-bolding to closest match the behavior of the request on previous
versions of macOS.

Bug: chromium:858861
Change-Id: Ic7ff22e171a15be20e0bcccb10b0c4798cba8b72
Reviewed-on: https://skia-review.googlesource.com/157566
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2018-09-27 21:54:03 +00:00
animations
bench only build stats bar chart when it'll be printed 2018-09-27 16:22:54 +00:00
bin Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
dm Remove more SkColorSpaceXform (and friends) 2018-09-26 22:30:05 +00:00
docker Use new build targets in continuous build of skottie and debugger. 2018-09-20 15:26:18 +00:00
docs move color4f docs to in progress 2018-09-21 20:54:29 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental move skpipe to experimental 2018-09-21 17:20:25 +00:00
fuzz FuzzPath -> FuzzNicePath 2018-09-25 17:04:00 +00:00
gm Revert "Reland "Implement an explicit binary search-based analytic gradient colorizer"" 2018-09-27 16:50:52 +00:00
gn Add initial support for generating tagged PDFs. 2018-09-27 19:35:40 +00:00
include Fix a typo in SkISize comments 2018-09-27 20:27:18 +00:00
infra [infra] Add nightly UpdateGoDEPS 2018-09-27 19:54:26 +00:00
modules [skottie] External font loader tweaks 2018-09-27 16:22:25 +00:00
platform_tools [skottie] Plumb external SkFontMgr 2018-08-23 13:13:30 +00:00
resources [skottie] Add a property setter sample/GM 2018-09-26 16:43:49 +00:00
samplecode Remove a largue quantity of 4444 and/or dithering code 2018-09-21 00:50:06 +00:00
site Docs: update to docs from a4daf19319 2018-09-21 20:01:25 +00:00
src Detect macOS font smoothing behavior. 2018-09-27 21:54:03 +00:00
tests Add initial support for generating tagged PDFs. 2018-09-27 19:35:40 +00:00
third_party Roll skia/third_party/skcms 1c1d5560df11..dfd5b3a4a61f (1 commits) 2018-09-27 19:18:41 +00:00
tools Call XInitThreads in sk_app startup 2018-09-27 17:54:51 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +00:00
.gitignore Add script to pull svgs to svgs/ and add to .gitignore 2018-08-31 20:02:24 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn move skpipe to experimental 2018-09-21 17:20:25 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING
CQ_COMMITTERS
DEPS Roll third_party/externals/swiftshader 40a6005e7a14..8c5ca8d1a7ea (5 commits) 2018-09-27 17:49:57 +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 Add new autoroll service accounts to AUTHORS check bypass 2018-09-07 18:49:23 +00:00
public.bzl Remove more SkColorSpaceXform (and friends) 2018-09-26 22:30:05 +00:00
README
README.chromium
whitespace.txt [infra] Marker for IntelBayTrail BIOS update. 2018-09-17 16:47:35 +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.