Skip to content

Add verticalOrigin accessor method - #409

Merged
cmyr merged 10 commits into
mainfrom
add-vertical-origin-accessor
Jun 24, 2026
Merged

Add verticalOrigin accessor method#409
cmyr merged 10 commits into
mainfrom
add-vertical-origin-accessor

Conversation

@madig

@madig madig commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

We thought we could have an official accessor for a glyph's vertical origin. Feel free to code golf this.

Harry helped flesh this out :)

@madig
madig requested a review from cmyr June 9, 2026 14:56
@Hoolean

Hoolean commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

(This repo felt like a nice home as the lib key is very well-defined in the spec 🏡 When this lands, there are a few projects downstream that can simplify too too, e.g. the utility function I added to ufo2fontir in fontc can go)

Comment thread src/error.rs Outdated
Comment thread src/glyph/mod.rs Outdated
Comment thread src/glyph/mod.rs Outdated
Comment thread src/glyph/mod.rs Outdated
Comment thread src/glyph/mod.rs Outdated
madig and others added 3 commits June 12, 2026 17:18
Co-authored-by: Harry Dalton <harry.dalton@daltonmaag.com>

@cmyr cmyr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure if you think this would be useful? Is there a particular reason this would be useful for verticalOrigin but not horizontal?

left some notes inline but i'm not opposed

Comment thread src/glyph/mod.rs Outdated
Comment thread src/glyph/mod.rs Outdated
Comment thread src/glyph/mod.rs Outdated
Comment thread src/error.rs
Comment thread src/error.rs Outdated
@madig

madig commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

Is there a particular reason this would be useful for verticalOrigin but not horizontal?

The horizontal origin is always zero I think 😁

@cmyr cmyr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, sorry for the wait!

@cmyr
cmyr merged commit 77bf21c into main Jun 24, 2026
5 checks passed
@cmyr
cmyr deleted the add-vertical-origin-accessor branch June 24, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants