-
Notifications
You must be signed in to change notification settings - Fork 61
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
add Saudi Arabia national shields #851
base: main
Are you sure you want to change the base?
Changes from 5 commits
f508517
a65d52f
56ff0cf
84931c4
fd71cb4
c4fd133
5b7c2d3
f1f10a6
8184ac7
02a74c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3687,6 +3687,20 @@ export function loadShields() { | |
}, | ||
}; | ||
|
||
// Saudi Arabia | ||
shields["SA:national"] = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The one |
||
spriteBlank: "shield_sa_national", | ||
textLayout: textConstraint("diamond"), | ||
textColor: Color.shields.black, | ||
numberingSystem: "arab", | ||
padding: { | ||
left: 3, | ||
right: 2, | ||
top: 4, | ||
bottom: 3, | ||
}, | ||
}; | ||
|
||
// Turkey | ||
shields["TR:motorway"] = hexagonVerticalShield( | ||
2, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I picked a few Naskh fonts that are available by default on most operating systems. I'm not 100% sure these are all the best choices, but they look close enough to the style as shown on Saudi shields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legibility doesn't look good on my system:
Why not use the packaged Americana fontstacks that have Arabic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shields are rendered client-side using fonts available to the browser. We would have to re-engineer shields to render text from a PBF fontstack instead of standard web formats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh duh good point. Don't you need some kind of
<link>
tag to use the Google Noto fonts?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not if it's already installed on the system, as with Android. But downloading and displaying Noto on all systems is an option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we wouldn't? I assume it's just a one time download into browser cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose not. Though we might as well include Noto Sans Armenian as well, if consistency is what we're going for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we'll need whatever scripts would get rendered into shields.