Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit

Permalink
First switch to Noto; remove italic
Browse files Browse the repository at this point in the history
fix #284

This commit also removes italic, given not all scripts have
italic (arabic, chinese…), so let's deal with a consistent rendering
across scripts.
  • Loading branch information
yohanboniface committed Mar 21, 2018
1 parent 2a29d9e commit 63a4932
Show file tree
Hide file tree
Showing 69 changed files with 90 additions and 112 deletions.
4 changes: 2 additions & 2 deletions base.mss
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
line-width: 0.5;
[zoom>=15] {
line-width: 1;
text-name: "[height]";
text-face-name: @sans_lt;
text-name: '[height]';
text-face-name: @regular;
text-placement: line;
text-fill: @contour_line;
text-halo-fill: @land;
Expand Down
Binary file added fonts/NotoSans-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSans-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSans-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSans-LightItalic.ttf
Binary file not shown.
Binary file added fonts/NotoSans-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSans-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansArabic-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansArabic-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansArabic-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansArabic-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansArabic-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansArmenian-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansArmenian-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansArmenian-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansArmenian-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansArmenian-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansCJKjp-Bold.otf
Binary file not shown.
Binary file added fonts/NotoSansCJKjp-Light.otf
Binary file not shown.
Binary file added fonts/NotoSansCJKjp-Medium.otf
Binary file not shown.
Binary file added fonts/NotoSansCJKjp-Regular.otf
Binary file not shown.
Binary file added fonts/NotoSansGeorgian-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansGeorgian-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansGeorgian-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansGeorgian-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansGeorgian-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansHebrew-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansHebrew-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansHebrew-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansHebrew-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansHebrew-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansKhmer-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansKhmer-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansKhmer-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansKhmer-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansKhmer-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansLao-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansLao-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansLao-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansLao-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansLao-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansMyanmar-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansMyanmar-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansMyanmar-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansMyanmar-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansMyanmar-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansTamil-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansTamil-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansTamil-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansTamil-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansTamil-Regular.ttf
Binary file not shown.
Binary file added fonts/NotoSansThai-Bold.ttf
Binary file not shown.
Binary file added fonts/NotoSansThai-ExtraLight.ttf
Binary file not shown.
Binary file added fonts/NotoSansThai-Light.ttf
Binary file not shown.
Binary file added fonts/NotoSansThai-Medium.ttf
Binary file not shown.
Binary file added fonts/NotoSansThai-Regular.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-Bold.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-ExtraBoldItalic.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-Italic.ttf
Binary file not shown.
53 changes: 0 additions & 53 deletions fonts/OpenSans-LICENSE.txt

This file was deleted.

Binary file removed fonts/OpenSans-Light.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-LightItalic.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-Semibold.ttf
Binary file not shown.
Binary file removed fonts/OpenSans-SemiboldItalic.ttf
Binary file not shown.
100 changes: 49 additions & 51 deletions labels.mss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

#low_place[type='country'][zoom>=3][zoom<=7] {
text-name:'[name]';
text-face-name:@sans_bold;
text-placement:point;
text-fill:@country_text;
text-face-name: @bold;
text-placement: point;
text-fill: @country_text;
text-halo-fill: @country_halo;
text-halo-radius: 1;
[zoom=3] {
Expand Down Expand Up @@ -58,9 +58,9 @@

#low_place[type='state'][zoom>=5][zoom<=10] {
text-name:'[name]';
text-face-name:@sans_bold_italic;
text-placement:point;
text-fill:@state_text;
text-face-name: @bold;
text-placement: point;
text-fill: @state_text;
text-halo-fill: @state_halo;
text-halo-radius: 1;
[zoom=5] {
Expand Down Expand Up @@ -109,7 +109,7 @@
}
shield-name:'[name]';
shield-size: 9;
shield-face-name: @sans;
shield-face-name: @medium;
shield-halo-radius: 1;
shield-wrap-width: 50;
shield-fill: @town_text;
Expand All @@ -126,7 +126,7 @@
shield-size: 10;
}
[is_capital='country'] {
shield-face-name: @sans_bold;
shield-face-name: @bold;
shield-fill: @capital_text;
shield-halo-fill: @capital_halo;
shield-size: 11;
Expand All @@ -145,7 +145,7 @@
#place[type='town'][zoom>=11][zoom<=17] {
text-name:'[name]';
text-size: 11;
text-face-name: @sans;
text-face-name: @medium;
text-halo-radius: 2;
text-wrap-width: 50;
text-fill: @town_text;
Expand All @@ -157,7 +157,7 @@
text-size: 12;
}
[is_capital='country'] {
text-face-name: @sans_bold;
text-face-name: @bold;
text-fill: @capital_text;
text-halo-fill: @capital_halo;
text-line-spacing: -2;
Expand Down Expand Up @@ -205,7 +205,7 @@
#place::small[type='hamlet'][zoom>=13][zoom<=20],
#place::small[type='neighbourhood'][zoom>=13][zoom<=20] {
text-name:'[name]';
text-face-name:@sans;
text-face-name:@medium;
text-placement:point;
text-fill:@other_text;
text-size:10;
Expand Down Expand Up @@ -254,7 +254,7 @@

#place::small[type='locality'][zoom>=15] {
text-name:'[name]';
text-face-name:@sans;
text-face-name:@medium;
text-placement:point;
text-fill:@locality_text;
text-size:9;
Expand Down Expand Up @@ -284,7 +284,7 @@
// =====================================================================
.poi::label[zoom>=16] {
text-name: "";
text-face-name: @sans;
text-face-name: @medium;
text-size: 10;
text-wrap-width: 30;
text-fill: @poi_text;
Expand All @@ -298,15 +298,15 @@
text-placements: "S,N,W,E";
text-avoid-edges: true;
text-clip: false;
text-character-spacing: -1;
text-character-spacing: -0.5;
[zoom>=16] {
/* Prio */
[main='townhall'],
[main='fire_station'],
[main='hospital'] {
text-name: "[name]";
[zoom>=19] {
text-face-name: @sans_bold;
text-face-name: @bold;
}
}
[main='school'],
Expand All @@ -316,7 +316,7 @@
text-min-distance: 2;
text-name: "[name]";
[zoom>=19] {
text-face-name: @sans_bold;
text-face-name: @bold;
}
}
}
Expand Down Expand Up @@ -368,7 +368,7 @@
}
.poi::craft[zoom>=18][craft!=null],
.poi::shop[zoom>=19][shop!=null] {
text-face-name: @sans;
text-face-name: @medium;
text-size: 10;
text-wrap-width: 30;
text-fill: @poi_text2;
Expand All @@ -379,10 +379,9 @@
text-halo-radius: 2;
text-label-position-tolerance: 18;
text-placement-type: simple;
text-placements: "S,N,W,E";
text-placements: 'S,N,W,E';
text-avoid-edges: true;
text-clip: false;
text-name: "[name]";
text-name: '[name]';
}

// =====================================================================
Expand All @@ -401,14 +400,14 @@
[zoom>=19][area>=0] {
text-name: "[name]";
text-halo-radius: 1.5;
text-face-name:@sans;
text-face-name: @medium;
text-size: 11;
text-wrap-width:30;
text-wrap-width: 30;
text-fill: #888;
text-halo-fill: #fff;
// Specific style overrides for different types of areas:
[type='park'][zoom>=10] {
text-face-name: @sans_lt_italic;
text-face-name: @regular;
text-fill: @park * 0.6;
text-halo-fill: lighten(@park, 10);
}
Expand Down Expand Up @@ -469,7 +468,7 @@
#waterway_label[type='canal'][zoom>=15],
#waterway_label[type='stream'][zoom>=17] {
text-name: '[name]';
text-face-name: @sans_italic;
text-face-name: @medium;
text-fill: darken(@water,20%);
text-halo-fill: @other_halo;
text-halo-radius: 1;
Expand Down Expand Up @@ -501,48 +500,47 @@

#motorway_label[type='motorway'][zoom>9],
#motorway_label[type='trunk'][zoom>9] {
text-name:"[name]";
text-face-name: @sans_bold;
text-name: '[name]';
text-face-name: @bold;
text-placement: line;
text-fill:@road_text;
text-fill: @road_text;
text-halo-fill: @road_halo;
text-halo-radius: 1;
text-min-distance: 60;
text-size:10;
text-size: 11;
text-avoid-edges: true;
text-character-spacing: -1;
[zoom=11] { text-min-distance:70; }
[zoom=12] { text-min-distance:80; }
[zoom=13] { text-min-distance:100; }
text-character-spacing: -0.1;
[zoom=11] { text-min-distance: 70; }
[zoom=12] { text-min-distance: 80; }
[zoom=13] { text-min-distance: 100; }
}

#mainroad_label[type='primary'][zoom>12],
#mainroad_label[type='secondary'][zoom>13],
#mainroad_label[type='tertiary'][zoom>13] {
text-name:'[name]';
text-face-name: @sans;
text-name: '[name]';
text-face-name: @medium;
text-placement: line;
text-fill: @road_text;
text-halo-fill: @road_halo;
text-halo-radius: 1;
text-min-distance:60;
text-size:11;
text-min-distance: 60;
text-size: 11;
text-avoid-edges: true;
text-character-spacing: -1;
text-character-spacing: -0.1;
}

#minorroad_label[zoom>14] {
text-name:'[name]';
text-face-name:@sans;
text-placement:line;
text-size:10;
text-fill:@road_text;
text-halo-fill:@road_halo;
text-halo-radius:1;
text-min-distance:60;
text-size:11;
text-name: '[name]';
text-face-name: @medium;
text-placement: line;
text-fill: @road_text;
text-halo-fill: @road_halo;
text-halo-radius: 1;
text-min-distance: 60;
text-size: 11;
text-avoid-edges: true;
text-character-spacing: -1;
// text-character-spacing: -0.5;
}

/* ================================================================== */
Expand Down Expand Up @@ -575,7 +573,7 @@
text-size: 10;
text-placement: line;
text-dy: -7;
text-face-name: @sans_lt_italic;
text-face-name: @regular;
text-halo-radius: 2;
text-halo-fill: @place_halo;
text-min-padding: 50;
Expand All @@ -593,7 +591,7 @@
#housenumber[zoom>=17]{
text-name: "[housenumber]";
text-placement: interior;
text-face-name: @sans;
text-face-name: @medium;
text-fill: @housenumber_text;
text-halo-fill: @road_halo;
text-halo-radius: 1;
Expand All @@ -612,7 +610,7 @@

#natural_point_label[type='bay'][zoom>=10] {
text-name: '[name]';
text-face-name: @sans_italic;
text-face-name: @medium;
text-fill: darken(@water,30%);
text-halo-fill: lighten(@water,10%);
text-halo-radius: 1;
Expand All @@ -623,7 +621,7 @@
#natural_point_label[type='peak'][zoom>=13] {
shield-file: url('icons/natural/peak-6.png');
shield-name: '[name]';
shield-face-name: @sans_lt_italic;
shield-face-name: @regular;
shield-fill: @peak;
shield-size: 10;
shield-min-distance: 50;
Expand Down
45 changes: 39 additions & 6 deletions palette.mss
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,45 @@
Map { font-directory: url(./fonts); }

/* set up font sets for various weights and styles */
@sans_lt: "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@sans_lt_italic: "Open Sans Italic", "DejaVu Sans Italic", "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@sans: "Open Sans Semibold", "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@sans_italic: "Open Sans Semibold Italic", "DejaVu Sans Italic", "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@sans_bold: "Open Sans Bold", "DejaVu Sans Bold", "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@sans_bold_italic: "Open Sans Bold Italic", "DejaVu Sans Bold Italic", "Open Sans Regular", "DejaVu Sans Book", "Unifont Medium", "unifont Medium";
@regular: 'Noto Sans Regular',
'Noto Sans Arabic Regular',
'Noto Sans Armenian Regular',
'Noto Sans CJK JP Regular',
'Noto Sans Georgian Regular',
'Noto Sans Hebrew Regular',
'Noto Sans Khmer Regular',
'Noto Sans Lao Regular',
'Noto Sans Myanmar Regular',
'Noto Sans Tamil Regular',
'Noto Sans Thai Regular',
'Unifont Medium',
'unifont Medium';
@medium: 'Noto Sans Medium',
'Noto Sans Arabic Medium',
'Noto Sans Armenian Medium',
'Noto Sans CJK JP Medium',
'Noto Sans Georgian Medium',
'Noto Sans Hebrew Medium',
'Noto Sans Khmer Medium',
'Noto Sans Lao Medium',
'Noto Sans Myanmar Medium',
'Noto Sans Tamil Medium',
'Noto Sans Thai Medium',
'Unifont Medium',
'unifont Medium';
@bold: 'Noto Sans Bold',
'Noto Sans Arabic Bold',
'Noto Sans Armenian Bold',
'Noto Sans CJK JP Bold',
'Noto Sans Georgian Bold',
'Noto Sans Hebrew Bold',
'Noto Sans Khmer Bold',
'Noto Sans Lao Bold',
'Noto Sans Myanmar Bold',
'Noto Sans Tamil Bold',
'Noto Sans Thai Bold',
'Unifont Medium',
'unifont Medium';

/* Some fonts are larger or smaller than others. Use this variable to
globally increase or decrease the font sizes. */
Expand Down

0 comments on commit 63a4932

Please sign in to comment.