diff options
author | 2017-03-29 11:32:02 -0400 | |
---|---|---|
committer | 2017-03-29 18:16:22 +0000 | |
commit | 3e306f6bf40c4ade5e1c216fcc8043006d7dbcee (patch) | |
tree | e81d5ddebf8118f10c71c3edb3a670e19d2200f5 /src/jumper/SkJumper.cpp | |
parent | 301431d7516a18e2b4232ccb70d2a79e8192c748 (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/jumper/SkJumper.cpp')
0 files changed, 0 insertions, 0 deletions