Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add italic superscripts (#2522) #2523

Merged
merged 1 commit into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/31.8.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* Add characters:
- LATIN EPIGRAPHIC LETTER ARCHAIC M (`U+A7FF`) (#2517).
- MUSICAL SYMBOL RINFORZANDO (`U+1D18C`) ... MUSICAL SYMBOL FORTE (`U+1D191`) (#2522).
* Improve glyph for Cyrillic I (`И`/`и`) under slab (#2489).
- Bulgarian locale (`'BGR'`) uses original style for capital.
25 changes: 24 additions & 1 deletion packages/font-glyphs/src/auto-build/recursive-build.ptl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$$include '../meta/macros.ptl'

import [clamp fallback] from "@iosevka/util"
import [mix clamp fallback] from "@iosevka/util"

glyph-module

Expand Down Expand Up @@ -67,3 +67,26 @@ glyph-block Recursive-Build : begin
return : Fork glyphs forkedPara

glyph-block-export Fork Miniature MiniatureParaT Thinner Widen

glyph-block Recursive-Build-ParaTfm : begin
glyph-block-export ForkTfm
define ForkTfm : namespace
define [boldGrade g] : begin
local pGrade : (900 - g) / 100
return : 900 - 100 * (2 / 25) * pGrade * pGrade

export : define [Bold a] : begin [set a.shape.weight : boldGrade a.shape.weight]
export : define [Italic a] : begin
set a.shape.slope 'italic'
set a.shape.slopeAngle : mix (para.slopeAngle || 0) 15 (94 / 150)
export : define [Sans a] : begin [set a.shape.serifs 'sans']

export : define [BoldItalic a] : begin [Bold a] [Italic a]
export : define [SansBold a] : begin [Sans a] [Bold a]
export : define [SansItalic a] : begin [Sans a] [Italic a]
export : define [SansBoldItalic a] : begin [Sans a] [Bold a] [Italic a]

export : define [TypeWriter a] : begin
set a.shape.spacing 'fixed'
if (a.derivingVariants && a.derivingVariants.mathtt)
set a.variants a.derivingVariants.mathtt
Loading
Loading