summaryrefslogtreecommitdiff
path: root/scripts/generate-style-code.js
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2020-03-19 17:43:11 -0700
committerMinh Nguyễn <mxn@1ec5.org>2020-04-24 13:46:40 -0700
commitc4c35449cbd0ef8b41ce334a53325101b8f1164e (patch)
treeae929ef64f6dd6fdd043512ec2221fcada253635 /scripts/generate-style-code.js
parent76ddb15dbcee8d75a02c1202ded8ea8a282f9f8c (diff)
downloadqtlocation-mapboxgl-c4c35449cbd0ef8b41ce334a53325101b8f1164e.tar.gz
[ios, macos] Choose fonts from font stack that match local fonts
Prefer local fonts that match the names specified in the font stack (from the text-font layout property), except for the last resort fonts that mbgl hard-codes. Fall back to the list of fallback CJK fonts in user defaults, then the fonts passed in through the platform-agnostic interface (that come from Info.plist). Explicitly use the first font descriptor in the cascade list instead of the system default of Helvetica. Since the font stack can vary from one rasterization operation to the next, avoid caching the resolved font for now. Removed null checks that are unrealistic given the Core Text API contract.
Diffstat (limited to 'scripts/generate-style-code.js')
0 files changed, 0 insertions, 0 deletions