question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support alignment attribute of components

See original GitHub issue

Components in .glyphs source files may contain an alignment attribute.

There’s no mention about this in the GlyphsFileFormat.md specification.

In my observations, it can take a value of 1 or -1; and I suppose that when the attribute is missing the value is 0?

I am not sure what these values do, and how a user can set them from the interface. I’d be nice if @schriftgestalt could shed some light on this, so we can add support in glyphsLib.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
schriftgestaltcommented, Mar 8, 2017

I’ll add it to ‘classes.py’

0reactions
anthrotypecommented, Mar 23, 2017

thanks for the clarification. I think we would still like to export this alignment data inside a glif’s lib, so that we can roundtrip it when going the other way around.

I’m going to keep this open until we do that.

Since the lib applies to the glyph as a whole instead of the single component, we would have to store it as a dictionary keyed by the component name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML align Attribute - GeeksforGeeks
The align Attribute in HTML is used to specify the alignment of text content of The Element. this attribute is used in all...
Read more >
Alignment, font styles, and horizontal rules in HTML documents
Deprecated. This attribute specifies the horizontal alignment of its element with respect to the surrounding context. Possible values: left : text lines are ......
Read more >
HTML align attribute - HTML tutorials - w3resource
Purpose of the HTML align attribute is to specify the alignment of data and the justification of text in a cell of a...
Read more >
Common Type Attributes (Using the GNU Compiler Collection ...
The aligned attribute specifies a minimum alignment (in bytes) for variables of the specified type. When specified, alignment must be a power of...
Read more >
align-content - CSS: Cascading Style Sheets - MDN Web Docs
Used alongside an alignment keyword. Regardless of the relative sizes of the item and alignment container and whether overflow which causes data ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found