mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 15:36:42 +08:00
added Persian layout and Lalezar font for RTL languages (#1786) by rendinjast
* add persian layout * font support for RTL languages (Lalezar) * remove forcing font * remove forcing font
This commit is contained in:
parent
75b611da88
commit
efd7887d09
2 changed files with 14 additions and 1 deletions
|
@ -414,6 +414,16 @@ const layouts = {
|
|||
"ฯฌ", "ุฤ", "ไฝ", "ทๆ", "ยณ", "จ๊", "ค๋", "ี์", "ดศ", "ะฮ", "ู?",
|
||||
" "
|
||||
]
|
||||
},
|
||||
},
|
||||
persian_standard: {
|
||||
keymapShowTopRow: true,
|
||||
keys: [
|
||||
"`~", "1!", "2@", "3#", "4$", "5%", "6^", "7&", "8*", "9(", "0)", "-_", "=+",
|
||||
"ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج", "چ", "\"",
|
||||
"ش", "س", "ی", "ب", "ل", "اآ", "ت", "ن", "م", "ک", "گ",
|
||||
"\\|", "ظ", "ط", "زژ", "ر", "ذ", "د", "پ", "و", ".", "/?",
|
||||
" "
|
||||
]
|
||||
}
|
||||
}
|
||||
export default layouts;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
@import url("https://fonts.googleapis.com/css2?family=Coming+Soon&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css2?family=Lalezar&display=swap");
|
||||
|
||||
:root {
|
||||
--roundness: 0.5rem;
|
||||
|
@ -2154,6 +2155,7 @@ key {
|
|||
.word {
|
||||
//flex-direction: row-reverse;
|
||||
direction: rtl;
|
||||
font-family: "Lalezar";
|
||||
}
|
||||
}
|
||||
&.withLigatures {
|
||||
|
@ -2470,6 +2472,7 @@ key {
|
|||
.word {
|
||||
//flex-direction: row-reverse;
|
||||
direction: rtl;
|
||||
font-family: "Lalezar";
|
||||
}
|
||||
}
|
||||
&.withLigatures {
|
||||
|
|
Loading…
Reference in a new issue