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 Horizontal Element Alignment [XELA] axis #157

Closed
2 tasks done
simoncozens opened this issue Nov 21, 2023 · 4 comments · Fixed by #158
Closed
2 tasks done

Add Horizontal Element Alignment [XELA] axis #157

simoncozens opened this issue Nov 21, 2023 · 4 comments · Fixed by #158
Labels
---Approved. Valid for PR Axis is ready to create a PR --new-axis New variable axis definition

Comments

@simoncozens
Copy link
Contributor

Requirements

  • I have inspected the current Axis Registry and there is not a registered custom axis that could be used for the variation purpose on the upcoming font project.
  • The metadata fields of the proposed axis meet the Axis Requirements as specified in the Protocol (linked above).

Font project(s) using the axis

SixtyFour Color (to be renamed) at https://github.com/jenskutilek/homecomputer-fonts

Short description of what the axis does

As a parallel to Vertical Element Alignment [YELA], this controls the position of horizontal elements.

Image

xela

Why is the axis needed

As the counterpart to YELA.

Axis metadata fields

(Remove this line and fill out the mock of the data structure of the axis)

#YELA based on [Wavefont](https://github.com/dy/wavefont)
tag: "XELA"
display_name: "Horizontal Element Alignment"
min_value: -100
default_value: 0
max_value: 100
precision: 0
fallback {
  name: "Default"
  value: 0
}
fallback_only: false
description:
  "Align glyphs from their default position (0%),"
  " usually the baseline, to a rightmost (100%)"
  " or leftmost (-100%) position."

@simoncozens simoncozens added the --new-axis New variable axis definition label Nov 21, 2023
@vv-monsalve
Copy link
Contributor

Could this be the same XALN #126?

@simoncozens
Copy link
Contributor Author

I don't think so. XALN aligns the entire glyph, YELA (and proposed XELA) aligns an element of the glyph.

@vv-monsalve
Copy link
Contributor

Revised description would be

description:
  "Align glyph elements from their default position (0%),"
  " usually the baseline, to a rightmost (100%)"
  " or leftmost (-100%) position."

@vv-monsalve
Copy link
Contributor

Revised definitions on January 26:

Precision value could be -1 to allow the fine control and 1000 positions

#XELA based on [Sixtyfour Convergence](https://github.com/jenskutilek/homecomputer-fonts/tree/master/Sixtyfour)
tag: "XELA"
display_name: "Horizontal Element Alignment"
min_value: -100.0
default_value: 0
max_value: 100.0
precision: -1
fallback {
  name: "Default"
  value: 0
}
fallback_only: false
description:
  "Align glyph elements from their default position (0%),"
  " usually the baseline, to a rightmost (100%)"
  " or leftmost (-100%) position."

@vv-monsalve vv-monsalve linked a pull request Apr 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
---Approved. Valid for PR Axis is ready to create a PR --new-axis New variable axis definition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants