Skip to content

Commit

Permalink
clarify Noto Sans in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
claysmalley committed Oct 18, 2023
1 parent 1d9ed7a commit e1a4a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions shieldlib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ The structure is as follows:
"bannerPadding": 1,
"bannerTextColor": "black",
"bannerTextHaloColor": "white",
"shieldFont": "sans-serif-condensed, 'Arial Narrow', sans-serif",
"shieldFont": "'Noto Sans Condensed', sans-serif-condensed, 'Arial Narrow', sans-serif",
"shieldSize": 20
},
"default": { ...definition },
"network_1": { ...definition },
"network_2": { ...definition },
"network_2": { ...definition }
"network_3": { ...definition }
}

```
Expand All @@ -104,7 +104,7 @@ The options block contains global parameters that apply across all shield drawin
- **`bannerPadding`**: padding between each banner
- **`bannerTextColor`**: color to draw text banners above the shield
- **`bannerTextHaloColor`**: color to draw an outline around the text banner
- **`shieldFont`**: font to use for shield text and banners
- **`shieldFont`**: ordered list of fonts to use for shield text and banners. This project uses Noto Sans Condensed by default, hosted as a downloadable web font on [another repository](https://github.com/osm-americana/web-fonts).
- **`shieldSize`**: "standard" size to use for shields in 1x pixels. However, some shields may diverge, for example, drawn diamond shields are drawn slightly larger for visual similarity with squares.

You should create one definition entry for each network. The entry key must match the encoded `network` value exactly. The "default" network defines what should be drawn if there's no definition for a particular network. A network definiton can contain any combination of the following parameters:
Expand Down
2 changes: 1 addition & 1 deletion src/js/shield_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3756,7 +3756,7 @@ export function loadShields() {
bannerHeight: 9,
bannerPadding: 1,
shieldFont:
'"Noto Sans Condensed", "Noto Sans Armenian Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif',
'"Noto Sans Condensed", "Noto Sans Armenian Condensed", sans-serif-condensed, "Arial Narrow", sans-serif',
shieldSize: 20,
},
};
Expand Down

0 comments on commit e1a4a9a

Please sign in to comment.