Prevent clipping of texture-extended glyphs in Kitty (#2466)
* Prevent clipping of texture-extended glyphs in Kitty * doc
This commit is contained in:
parent
47b3424083
commit
e5736b6fd2
3 changed files with 6 additions and 2 deletions
|
@ -1 +1,2 @@
|
|||
* Add `diagonal-tailed-cursive` variants for Cyrillic Lower Ef (`cv93`).
|
||||
* Prevent clipping of texture-extended glyphs in Kitty.
|
|
@ -3,7 +3,8 @@ $$include '../meta/macros.ptl'
|
|||
|
||||
import [linreg clamp mix fallback] from "@iosevka/util"
|
||||
import [getGrTree IsSuperscript IsSubscript AnyCvOrCherryPicking] from "@iosevka/glyph/relation"
|
||||
import [AnyLocalizedForm DotlessOrNot CvDecompose MathSansSerif Texture] from "@iosevka/glyph/relation"
|
||||
import [AnyLocalizedForm DotlessOrNot CvDecompose MathSansSerif] from "@iosevka/glyph/relation"
|
||||
import [Texture Joining] from "@iosevka/glyph/relation"
|
||||
import [BooleanGeometry StrokeGeometry] from "@iosevka/geometry"
|
||||
import [NumeratorForm DenominatorForm] from "@iosevka/glyph/relation"
|
||||
import [Transform] from "@iosevka/geometry/transform"
|
||||
|
@ -725,6 +726,8 @@ glyph-block Autobuild-Transformed-Texture : begin
|
|||
create-glyph targetNameMap.(glyphid) unicode : glyph-proc
|
||||
include glyphT AS_BASE ALSO_METRICS
|
||||
set-width Width
|
||||
if (extL > 0) : Joining.or currentGlyph Joining.Classes.Left
|
||||
if (extR > 0) : Joining.or currentGlyph Joining.Classes.Right
|
||||
if extL : begin
|
||||
local shift : (glyphT.advanceWidth - Width) * extL / (extL + extR)
|
||||
currentGlyph.applyTransform [Translate (-shift) 0] true
|
||||
|
|
|
@ -137,7 +137,7 @@ export const Joining = {
|
|||
glyph.related.joining = cls;
|
||||
},
|
||||
or(glyph, cls) {
|
||||
Joining.set(glyph, cls | Joining.get(cls));
|
||||
Joining.set(glyph, cls | Joining.get(glyph));
|
||||
},
|
||||
amendOtName(baseName, cl) {
|
||||
switch (cl) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue