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

Fix(?) Guillemet + Around 13 Keyboard/Technical Symbols #2662

Merged
merged 7 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
arrow head, electric arrow
Logo121 committed Jan 27, 2025
commit 17597d2e081dd852b185515342f699e40b181ed4
10 changes: 9 additions & 1 deletion packages/font-glyphs/src/symbol/arrow.ptl
Original file line number Diff line number Diff line change
@@ -1588,6 +1588,14 @@ glyph-block Symbol-Arrow : for-width-kinds WideWidth1
curl [mix x2 x3 pLastSeg] [mix y2 y3 pLastSeg]
include : ArrowHead x2 y2 x3 y3 arrowHeadSize

do "Arrow Heads"
create-glyph [MangleName 'arrowHeadUp'] [MangleUnicode 0x2303] : glyph-proc
set-width MosaicWidth
include : ArrowHead arrowMidX arrowBot arrowMidX arrowTop
create-glyph [MangleName 'arrowHeadDown'] [MangleUnicode 0x2304] : glyph-proc
set-width MosaicWidth
include : ArrowHead arrowMidX arrowTop arrowMidX arrowBot

do "Legacy computing arrows"
define bodyWidth : Math.min arrowWidth (arrowHeight * 0.6)
create-glyph [MangleName 'arrowUpThenNW'] [MangleUnicode 0x1F8B0] : glyph-proc
@@ -1660,4 +1668,4 @@ glyph-block Symbol-Arrow : for-width-kinds WideWidth1
include : FlipAround arrowMidX SymbolMid

if (MosaicWidthScalar == 1) : begin
glyph-block-export ArrowShape ArrowHead ArrowBar TrigArrowShape
glyph-block-export ArrowShape ArrowHead ArrowBar TrigArrowShape TriangleArrowHead
11 changes: 11 additions & 0 deletions packages/font-glyphs/src/symbol/geometric/technical.ptl
Original file line number Diff line number Diff line change
@@ -38,6 +38,17 @@ glyph-block Symbol-Geometric-Technical : for-width-kinds WideWidth1
set-width Geom.Width
include : TriangleShape Geom.Left Geom.Bot Geom.Left Geom.MidY Geom.Right Geom.Bot fineGeometryStroke

create-glyph [MangleName 'electricArrow'] [MangleUnicode 0x2301] : glyph-proc
set-width Geom.Width
define amp : Geom.Size / 2
define amp2 : Geom.Size / 4
include : intersection [MaskRight Geom.Left] [MaskLeft Geom.Right] : dispiro
corner (Geom.MidX - Geom.Size * 2) (Geom.MidY + amp2 * 4) [widths.center GeometryStroke]
sharp-corner Geom.MidX (Geom.MidY - amp)
corner Geom.MidX Geom.MidY [widths.center.heading GeometryStroke Upward]
sharp-corner Geom.MidX (Geom.MidY + amp)
corner (Geom.MidX + Geom.Size * 2) (Geom.MidY - amp2 * 4) [widths.center GeometryStroke]

create-glyph [MangleName 'viewdataSquare'] [MangleUnicode 0x2317] : glyph-proc
set-width Geom.Width
define shrink : Geom.Size * 2 * 0.13