Skip to content

Commit

Permalink
Merge pull request #97 from subframe7536/v6
Browse files Browse the repository at this point in the history
V6.3 release
  • Loading branch information
subframe7536 authored Apr 19, 2023
2 parents 7fc12af + 44d19b5 commit bc29341
Show file tree
Hide file tree
Showing 101 changed files with 4,895 additions and 416 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# changelog

## v6.3

### feature

- liga: add `~~` in `calt`
- liga: add `__` in `ss03`
- liga: add `>=` `<=` in `ss04`
- liga: add `{{` `}}` in `ss05`

### fix & optimze

- fix: make second character center in `::<`/`>::` etc
- fix: italic $D0 `Đ`
- opt: italic $79 `y`
- opt: italic kerning

## v6.2

### change
Expand Down
10 changes: 8 additions & 2 deletions img/fonttest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

-------------------Ligatures-----------------------

0x12 ~@
0x12 ~@ ~~

</ /> <> </>

:: ::: := ::=
:: ::: := ::>

:*:+:^:-:~:

Expand Down Expand Up @@ -62,6 +62,12 @@ ss02: [info] [trace]
[error] [fatal]
[vite]

ss03: __

ss04: >= <=

ss05: {{ }}

---------------中英文2:1----------------
|ab|cd|ef|gh|ij|kl|mn|op|qr|st|uv|wx|yz|
|这|应|该|是|中|英|文|完|美|的|2:|1等距|
Expand Down
Binary file modified img/ligature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
186 changes: 186 additions & 0 deletions source/mono.fea
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ script latn {
feature SlashedZero;
feature StyleSets01;
feature StyleSets02;
feature StyleSets03;
feature StyleSets04;
feature StyleSets05;
feature CharacterVariants01;
feature CharacterVariants02;
feature CharacterVariants03;
Expand Down Expand Up @@ -123,13 +126,17 @@ feature ContextualAlternates calt {
lookup tag_todo;
# todo)) tags for jetbrains' IDE
lookup tag_todo_alt;
# ~~
lookup wave;
}

feature CharacterVariants01 cv01 {
# @ # $ % & Q -> =>
lookup pure_style;
}

feature SlashedZero zero {
# 0
lookup slash_zero;
}

Expand Down Expand Up @@ -161,15 +168,37 @@ feature StyleSets02 ss02 {
lookup tag_vite;
}

feature StyleSets03 ss03 {
# __
lookup underscore_underscore;
}

feature StyleSets04 ss04 {
# >=
lookup greater_equal;
# <=
lookup less_equal;
}

feature StyleSets05 ss05 {
# {{
lookup braceleft_double;
# }}
lookup braceright_double;
}

feature CharacterVariants02 cv02 {
# i
lookup alt_i;
}

feature CharacterVariants03 cv03 {
# a
lookup alt_a;
}

feature CharacterVariants04 cv04 {
# @
lookup at_alt;
}

Expand Down Expand Up @@ -337,6 +366,14 @@ lookup colon_center {
context colon (@operator @colons);
sub 0 operator_center_2;
}
subtable 444 {
context (@colons) colon (@operator);
sub 0 operator_center_1;
}
subtable 444_1 {
context (@operator) colon (@colons);
sub 0 operator_center_1;
}
subtable 555 {
context (@colons @operator) colon;
sub 0 operator_center_3;
Expand Down Expand Up @@ -2038,4 +2075,153 @@ lookup at_alt {
sub at_alt -> at_alt_1;
sub asciitilde_at -> asciitilde_at_alt_1;
sub asciitilde_at_alt -> asciitilde_at_alt_1;
}

lookup underscore_underscore {
subtable ignore1 {
ignore context (underscore) underscore (underscore);
}
subtable ignore2 {
ignore context underscore (underscore underscore);
}
subtable 111 {
context (placeholder) underscore;
sub 0 underscore_underscore_1;
}
subtable 222 {
context underscore (underscore);
sub 0 underscore_underscore_2;
}
}

lookup underscore_underscore_1 {
sub underscore -> underscore_underscore;
}

lookup underscore_underscore_2 {
sub underscore -> placeholder;
}

lookup greater_equal {
subtable ignore1 {
ignore context (greater) greater (equal);
}
subtable ignore2 {
ignore context (greater) equal (equal);
}
subtable 111 {
context (placeholder) equal;
sub 0 greater_equal_1;
}
subtable 222 {
context greater (equal);
sub 0 greater_equal_2;
}
}

lookup greater_equal_1 {
sub equal -> greater_equal;
}

lookup greater_equal_2 {
sub greater -> placeholder;
}
lookup less_equal {
subtable ignore1 {
ignore context (less) greater (equal);
}
subtable ignore2 {
ignore context (less) equal (equal);
}
subtable 111 {
context (placeholder) equal;
sub 0 less_equal_1;
}
subtable 222 {
context less (equal);
sub 0 less_equal_2;
}
}

lookup less_equal_1 {
sub equal -> less_equal;
}

lookup less_equal_2 {
sub less -> placeholder;
}

lookup wave {
subtable ignore1 {
ignore context (asciitilde) asciitilde (asciitilde);
}
subtable ignore2 {
ignore context asciitilde (asciitilde asciitilde);
}
subtable 111 {
context (placeholder) asciitilde;
sub 0 wave_1;
}
subtable 222 {
context asciitilde (asciitilde);
sub 0 wave_2;
}
}

lookup wave_1 {
sub asciitilde -> wave;
}

lookup wave_2 {
sub asciitilde -> placeholder;
}

lookup braceleft_double {
subtable ignore1 {
ignore context (braceleft) braceleft (braceleft);
}
subtable ignore2 {
ignore context braceleft (braceleft braceleft);
}
subtable 111 {
context (placeholder) braceleft;
sub 0 braceleft_double_1;
}
subtable 222 {
context braceleft (braceleft);
sub 0 braceleft_double_2;
}
}

lookup braceleft_double_1 {
sub braceleft -> braceleft_double;
}

lookup braceleft_double_2 {
sub braceleft -> placeholder;
}

lookup braceright_double {
subtable ignore1 {
ignore context (braceright) braceright (braceright);
}
subtable ignore2 {
ignore context braceright (braceright braceright);
}
subtable 111 {
context (placeholder) braceright;
sub 0 braceright_double_1;
}
subtable 222 {
context braceright (braceright);
sub 0 braceright_double_2;
}
}

lookup braceright_double_1 {
sub braceright -> braceright_double;
}

lookup braceright_double_2 {
sub braceright -> placeholder;
}
Loading

0 comments on commit bc29341

Please sign in to comment.