forked from be5invis/Iosevka
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The remaining schematic symbols (be5invis#2383)
* small gate * and/or gate * loops * doc --------- Co-authored-by: Belleve <belleve@typeof.net>
- Loading branch information
Showing
5 changed files
with
203 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
* Add separate variant selectors For Cyrillic Capital/Lower E (`VXAA`, `VXAB`). | ||
* Add `unilateral-bottom-serifed` and `unilateral-bottom-inward-serifed` variants for Cyrillic Capital/Lower Ze (`cv69`, `cv70`). | ||
* Add characters: | ||
- SYMBOL FOR SAMARITAN SOURCE (`U+214F`). | ||
- CURLY LOOP (`U+27B0`). | ||
- DOUBLE CURLY LOOP (`U+27BF`). | ||
- LEFT THIRD INDUCTOR (`U+1CC0B`) (Proposed for Unicode 16; L2/21-235). | ||
- MIDDLE THIRD INDUCTOR (`U+1CC0C`) (Proposed for Unicode 16; L2/21-235). | ||
- RIGHT THIRD INDUCTOR (`U+1CC0D`) (Proposed for Unicode 16; L2/21-235). | ||
- LOGIC GATE OR (`U+1CC15`) (Proposed for Unicode 16; L2/21-235). | ||
- LOGIC GATE AND (`U+1CC16`) (Proposed for Unicode 16; L2/21-235). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
$$include '../../meta/macros.ptl' | ||
|
||
import [mix linreg clamp fallback] from "@iosevka/util" | ||
import [Box] from "@iosevka/geometry/box" | ||
|
||
glyph-module | ||
|
||
glyph-block Symbol-Pictograph-Loops : for-width-kinds WideWidth1 | ||
glyph-block-import CommonShapes | ||
glyph-block-import Common-Derivatives | ||
glyph-block-import Symbol-Geometric-Shared : GeometricDim | ||
|
||
define Geom : GeometricDim MosaicUnitWidth MosaicWidth | ||
define box : new Box Geom.Top Geom.Bot Geom.Left Geom.Right | ||
|
||
define [LoopImpl bound nLoops sw _kX] : glyph-proc | ||
local xDroop : (bound.right - bound.left) * (0.2 / nLoops) | ||
local left : bound.left + xDroop | ||
local right : bound.right - xDroop | ||
local yTerm : bound.mixY (1 - 0.05 / nLoops) | ||
local yInter : bound.mixY 0.9 | ||
local ySide : bound.mixY 0.4 | ||
local kX : fallback _kX 0.1 | ||
|
||
local loopPart {} | ||
foreach [i : range 0 nLoops] : loopPart.push : list | ||
g4.right.mid [mix left right (i / nLoops)] bound.top | ||
g4 [mix left right ((i + 0.5) / nLoops)] yInter | ||
g4.down.mid [mix left right ((i + 1 - kX) / nLoops)] ySide | ||
arch.rhs bound.bot (sw -- sw) | ||
g4.up.mid [mix left right ((i + kX) / nLoops)] ySide | ||
g4 [mix left right ((i + 0.5) / nLoops)] yInter | ||
|
||
include : dispiro | ||
widths.rhs sw | ||
g4 bound.left yTerm | ||
* loopPart | ||
g4.right.mid right bound.top | ||
g4 bound.right yTerm | ||
|
||
create-glyph [MangleName 'curlyLoop'] [MangleUnicode 0x27B0] : glyph-proc | ||
set-width Geom.Width | ||
include : LoopImpl box 1 GeometryStroke | ||
|
||
create-glyph [MangleName 'doubleCurlyLoop'] [MangleUnicode 0x27BF] : glyph-proc | ||
set-width Geom.Width | ||
include : LoopImpl box 2 [AdviceStroke : 8 / MosaicWidthScalar] 0.05 | ||
|
||
create-glyph [MangleName 'samaritanSource'] [MangleUnicode 0x214F] : glyph-proc | ||
set-width Geom.Width | ||
local lowBox : new Box (XH / 2) 0 SB (MosaicWidth - SB) | ||
include : LoopImpl lowBox 3 [AdviceStroke : 10 / MosaicWidthScalar] | ||
|
||
include : FlipAround lowBox.xMid lowBox.yMid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters