]> de.git.xonotic.org Git - xonotic/mediasource.git/blobdiff - fonts/xolonium/src/fea/Xolonium-Unshared-Bold.fea
Update Xolonium font sources to version 3.1
[xonotic/mediasource.git] / fonts / xolonium / src / fea / Xolonium-Unshared-Bold.fea
diff --git a/fonts/xolonium/src/fea/Xolonium-Unshared-Bold.fea b/fonts/xolonium/src/fea/Xolonium-Unshared-Bold.fea
new file mode 100644 (file)
index 0000000..8237f84
--- /dev/null
@@ -0,0 +1,61 @@
+feature pnum
+{
+       lookup pnumWidth
+       {
+               pos one <-125 0 -270 0>;
+               pos [uni00B9 uni2081 one.numr one.dnom] <-65 0 -140 0>;
+
+               pos three <-30 0 -30 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>;
+       } 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 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' -50 uni2074;
+               pos uni2087' -50 uni2084;
+               pos seven.numr' -50 four.numr;
+               pos seven.dnom' -50 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 -80;
+       pos emdash emdash -80;
+
+       pos period question -80;
+       pos ellipsis question -80;
+
+       pos slash slash -80;
+       pos backslash backslash -80;
+} kernAll;