]> de.git.xonotic.org Git - xonotic/mediasource.git/blobdiff - fonts/xolonium/src/fea/Xolonium-Unshared-Regular.fea
Merge branch 'sev/xolonium3' into 'master'
[xonotic/mediasource.git] / fonts / xolonium / src / fea / Xolonium-Unshared-Regular.fea
diff --git a/fonts/xolonium/src/fea/Xolonium-Unshared-Regular.fea b/fonts/xolonium/src/fea/Xolonium-Unshared-Regular.fea
new file mode 100644 (file)
index 0000000..1f1cdb5
--- /dev/null
@@ -0,0 +1,68 @@
+feature pnum
+{
+       lookup pnumWidth
+       {
+               pos one <-130 0 -300 0>;
+               pos [uni00B9 uni2081 one.numr one.dnom] <-80 0 -170 0>;
+
+               pos three <-20 0 -20 0>;
+               pos [uni00B3 uni2083 three.numr three.dnom] <-10 0 -10 0>;
+
+               pos four <-10 0 -10 0>;
+               pos [uni2074 uni2084 four.numr four.dnom] <-10 0 -10 0>;
+
+               pos seven <-10 0 -10 0>;
+               pos [uni2077 uni2087 seven.numr seven.dnom] <-10 0 -10 0>;
+       } pnumWidth;
+
+       lookup pnumKern
+       {
+               # Note: Simple pair position rules are added to the legacy
+               # kern table by FontForge, causing unintended kerning.
+               # Contextual position rules avoid this issue.
+
+               pos five' -10 seven;
+               pos uni2075' -10 uni2077;
+               pos uni2085' -10 uni2087;
+               pos five.numr' -10 seven.numr;
+               pos five.dnom' -10 seven.dnom;
+
+               pos six' -10 seven;
+               pos uni2076' -10 uni2077;
+               pos uni2086' -10 uni2087;
+               pos six.numr' -10 seven.numr;
+               pos six.dnom' -10 seven.dnom;
+
+               pos seven' -10 two;
+
+               pos seven' -110 four;
+               pos uni2077' -60 uni2074;
+               pos uni2087' -60 uni2084;
+               pos seven.numr' -60 four.numr;
+               pos seven.dnom' -60 four.dnom;
+
+               # Punctuation
+
+               pos seven' -90 @PERIOD;
+               pos seven' -50 @DASH;
+
+               pos @PERIOD' -40 [one seven];
+               pos @DASH' -20 [one seven];
+
+               pos @SLASH' -80 four;
+               pos @BRACKET_' -20 four;
+       } pnumKern;
+} pnum;
+
+
+lookup kernAll
+{
+       pos endash endash -90;
+       pos emdash emdash -90;
+
+       pos period question -80;
+       pos ellipsis question -80;
+
+       pos slash slash -80;
+       pos backslash backslash -80;
+} kernAll;