Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix listFonts #1076

Merged
merged 1 commit into from
Nov 24, 2023
Merged

Fix listFonts #1076

merged 1 commit into from
Nov 24, 2023

Conversation

Caerbannog
Copy link
Contributor

Promise code never worked: listFonts did not wait for fs.stat() to resolve(). This was not evident because late results were still used.

A recent PR made it worse: late results are now ignored. This manifested for styles with missing fonts, no fallback could be used.

Promise code never worked: listFonts did not wait for fs.stat() to resolve().
This was not evident because late results were still used.

A recent PR made it worse: late results are now ignored.
This manifested for styles with missing fonts, no fallback could be used.

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
Copy link
Collaborator

@acalcutt acalcutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this and it fixed the font issue I described in slack

@acalcutt acalcutt merged commit c9aa26a into maptiler:master Nov 24, 2023
6 checks passed
@Caerbannog Caerbannog deleted the fix-fonts branch November 26, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants