Skip to content

Commit

Permalink
Merge pull request #90 from alacarte-maps/unicode-fonts
Browse files Browse the repository at this point in the history
Unicode fonts: This is about the best we can do regarding unicode support while using Cairo.
  • Loading branch information
florianjacob committed Dec 28, 2016
2 parents 0c32bd1 + a8f8b0d commit 030a186
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -79,6 +79,9 @@ The results get stored in `build/manpages/`.
* libpng
* cmake (>= 2.8.8)
* asciidoc (>= 8.6.9) (optional, needed for manpage generation)
* DejaVu font (this is the default font if no other font is specified).
* If your characters are not supported by DejaVu, try to use the Noto font.
See [data/mapcss/default.mapcss](data/mapcss/default.mapcss) for usage examples.

alacarte's dependency policy is to depend on nothing that's not included or newer than Debian stable.
So currently, we target and test on Debian Jessie, but we're open to support any other OS.
Expand Down
13 changes: 13 additions & 0 deletions data/mapcss/default.mapcss
@@ -1,3 +1,16 @@
* {
font-family: "DejaVu";
/* Supports Latin and Cyrillic characters, no arabic */
/* Hint: don't forget to install the font on your server */
//font-family: "Noto Sans";
/* Supports Asian characters.
JP says that japanese characters are preferred to other languages,
can be changed to KR, SC, TC. */
//font-family: "Noto Sans CJK JP";
/* For Hindi use this: */
//font-family: "Noto Sans Devanagari";
/* Other examples can be found on https://www.google.com/get/noto/help/guidelines/ */
}
canvas {
fill-color: #fefefe;
fill-image: ../img/bg_light.png;
Expand Down
3 changes: 3 additions & 0 deletions data/mapcss/wire.mapcss
@@ -1,3 +1,6 @@
* {
font-family: "DejaVu";
}
canvas {
fill-color: #000000;
fill-image: ../img/bg.png;
Expand Down

0 comments on commit 030a186

Please sign in to comment.