aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2017-03-29 11:32:02 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-29 18:16:22 +0000
commit3e306f6bf40c4ade5e1c216fcc8043006d7dbcee (patch)
treee81d5ddebf8118f10c71c3edb3a670e19d2200f5 /src/gpu/effects
parent301431d7516a18e2b4232ccb70d2a79e8192c748 (diff)
Use FontWeight symbols when available on Mac.
Newer versions of macOS have NSFontWeightXXX symbols and iOS has UIFontWeightXXX symbols to provide the conversion between [-1, 1] CTFontDescriptor weights and [0, 1000] CSS weights. Currently the values these symbols provide are hard coded (for expediency), but the symbols should be used when available since the values may change without notice. Change-Id: I0875c6a96c5b14e456f91bccf7a84f0306a3d63a Reviewed-on: https://skia-review.googlesource.com/10163 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/gpu/effects')
0 files changed, 0 insertions, 0 deletions