Skip to content

Commit

Permalink
Refined font rules
Browse files Browse the repository at this point in the history
  • Loading branch information
andjc committed Mar 20, 2015
1 parent 603ceec commit 32de91b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
20 changes: 17 additions & 3 deletions css/mymr-fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@
*/

:lang(ksw), :lang(pwo) {
font-language-override: "ksw"; /* Padauk */
-ms-font-feature-settings: "locl"; /* Padauk */
font-feature-settings: "hsln", "wtri", "lldt", "locl"; /* Padauk */
font-language-override: "ksw"; /* Padauk, Noto Sans Myanmar */
-ms-font-feature-settings: "locl"; /* Padauk, Noto Sans Myanmar */
font-feature-settings: "hsln", "wtri", "lldt", "locl"; /* Padauk, Noto Sans Myanmar (only locl supported) */
}

:lang(kht) {
font-language-override: "kht"; /* Padauk */
-ms-font-feature-settings: "locl"; /* Padauk */
font-feature-settings: "kdot", "fdot", "locl"; /* Padauk */

:lang(kyu) {
font-language-override: "kyu"; /* Padauk */
-ms-font-feature-settings: "locl"; /* Padauk */
font-feature-settings: "wtri", "hsln" 2, "locl"; /* Padauk */
}


Expand All @@ -42,6 +47,8 @@ html {
* Enable localised forms for IE
*
* letter-spacing values not equal to 0, will disable liga and clig features in myme style fonts, breaking rendering.
*
* These rules are needed for Padauk and Tharlon, but are not required for Myanmar Sans Pro and Noto Sans Myanmar
*/
html, body, * {
-webkit-font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
Expand All @@ -50,6 +57,13 @@ html, body, * {
font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "locl";
}


/*
* Other rules
*
*
*/

code,
kbd {
font-family: monospace;
Expand Down
5 changes: 4 additions & 1 deletion css/mymr.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
/*
* Myanmar overrides
*
*
* ordered lists use numeric markers.
* To use alphabtic markers, use
* <ol class="alpha">git push origin
*
*
*/

Expand Down

0 comments on commit 32de91b

Please sign in to comment.