This repository holds the language SVG icons for the weeklyosm.eu website
The folder icons-with-fonts/
contains the SVG icons, which are based on the font whilst the icons-with-shapes
folder contains the icons based on paths/shapes. The latter can be used without having the custom font installed.
- frame color: #888888ff
- font family: Economica Bold
- font color grey: #444444
- font color green: #00b400
- not used anymore, but for completeness: font color blue: #00b7ff
- example font size in de.svg icon: 130 pt
- example font size in hak.svg icon: 100 pt
- example font size in zh-cn.svg icon for the letters zh is 100 pt and for the CN it's 50 pt
The following requirements are needed in order to create a new language icon.
You need to know the language abbreviation, e.g. the ISO Code.
You need to know how to install the font Economica in your operating system in order to use it in Inkscape.
- Inkscape for editing the template
- bash, sed, Inkscape for running the script
convert-inkscape-to-normal-svg.sh
- Clone this repository
- Choose a template file from
icons-with-fonts/
folder - Copy that file with a new name of the language you want to add below the
icons-with-fonts/
folder. Make sure you choose a template which is already very similar to your target language so that you do not have many changes. - Install the Economica font
- Edit the text in the new template file with Inkscape
- Save your work in this file.
- Now use "Save as" to create a copy of this file in the folder
icons-with-shapes/
- Select the text object and convert it to a path. This can be done with CTRL+Shift+C or via menu Path → Convert Object to Path
- Save your file and exit Inkscape
- Run the script
./convert-inkscape-to-normal-svg.sh
- Create a pull request to this repository with your new icon
- Add the icon to the weekly backend and to OSMBC