This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Allow specifying multiple fonts or font families for local font rendering #16253
Merged
Commits on Apr 24, 2020
-
[ios, macos] Corrected PingFang test fixture
PingFangTC-Regular is better than PingFangTC-Thin. There is no font by the name “PingFang”.
Configuration menu - View commit details
-
Copy full SHA for 944e034 - Browse repository at this point
Copy the full SHA 944e034View commit details -
[ios, macos] Allow specifying multiple fonts or font families for loc…
…al font rendering mbgl::Renderer and mbgl::MapSnapshotter can now contain a list of font family names, font display names, and font PostScript names, each name separated by a newline.
Configuration menu - View commit details
-
Copy full SHA for 61e4f46 - Browse repository at this point
Copy the full SHA 61e4f46View commit details -
[ios, macos] Take font family names from user defaults
Take font family names from user defaults before falling back to font family names in Info.plist.
Configuration menu - View commit details
-
Copy full SHA for b830eb2 - Browse repository at this point
Copy the full SHA b830eb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc31f77 - Browse repository at this point
Copy the full SHA fc31f77View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for bc468c3 - Browse repository at this point
Copy the full SHA bc468c3View commit details -
[ios, macos] Avoid redundant fallback in font cascade list
A font descriptor should not be a fallback for itself.
Configuration menu - View commit details
-
Copy full SHA for 4b67fb1 - Browse repository at this point
Copy the full SHA 4b67fb1View commit details -
[ios, macos] Get glyph metrics from font
Get glyph metrics from the font in the process of drawing each glyph into a bitmap context. These metrics result in more accurate kerning and better aligned baselines than the previous hard-coded values. Align iOS/macOS local glyph rasterization test fixture to Qt.
Configuration menu - View commit details
-
Copy full SHA for 75bc946 - Browse repository at this point
Copy the full SHA 75bc946View commit details -
Configuration menu - View commit details
-
Copy full SHA for a52cc3e - Browse repository at this point
Copy the full SHA a52cc3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2f7c68 - Browse repository at this point
Copy the full SHA d2f7c68View commit details -
[ios, macos] Increased tolerance for local glyph rasterization test
Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com>
Configuration menu - View commit details
-
Copy full SHA for afc8669 - Browse repository at this point
Copy the full SHA afc8669View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d3b021 - Browse repository at this point
Copy the full SHA 3d3b021View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.