Skip to content

Commit

Permalink
add Fira Sans Extra Condensed web font
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley committed Oct 7, 2023
1 parent 9efee5b commit d364151
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<meta charset="utf-8" />
<title>OpenStreetMap Americana</title>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
Expand Down
3 changes: 2 additions & 1 deletion src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3753,7 +3753,8 @@ export function loadShields() {
bannerTextHaloColor: Color.backgroundFill,
bannerHeight: 9,
bannerPadding: 1,
shieldFont: '"sans-serif-condensed", "Arial Narrow", sans-serif',
shieldFont:
'"Fira Sans Extra Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif',
shieldSize: 20,
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/shieldtest.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Overpass:wght@500&display=block"
href="https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<style>
Expand Down

0 comments on commit d364151

Please sign in to comment.