You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: How to turn on swsh only on the first character in a GlyphRun?
When I turn on swsh on a Glyph run, by default, it is of course applied to every single charcter, looks like this:
I would like to apply swsh only to the first character (or in other words, to only part of the text string in the GlyphRun), how do I achieve that?
Perhaps there is a way to create a GlyphRun using an array of Glyphs? Because I can then find all the individual Glyphs I want based on my preference on typesetting on individual letters, and manually put them together.
Proposal
Extend font.layout to accept Array of Glyphs, and layout them, return a GlyphRun object
The text was updated successfully, but these errors were encountered:
Typogram
changed the title
How to turn on swsh only on the first character in a GlyphRun?
Exntend font.layout accept Array of Glyphs and return a GlyphRun?
Aug 25, 2023
Use case: How to turn on
swsh
only on the first character in a GlyphRun?When I turn on
![image](https://private-user-images.githubusercontent.com/41246474/263342132-1e914d8a-fb77-4ff6-b34b-5c557d36ece9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MDc4ODgsIm5iZiI6MTcyMTUwNzU4OCwicGF0aCI6Ii80MTI0NjQ3NC8yNjMzNDIxMzItMWU5MTRkOGEtZmI3Ny00ZmY2LWIzNGItNWM1NTdkMzZlY2U5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDIwMzMwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwMzAyMmZiNDgzNTEwNjkxMThjODdlYWU0N2E3ZjhkOTBjMGQ4YjMwZmZlMDI0YzNkZWZmZjExYTUwYjI0N2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lhjaNW7fqjshhjwet3noPbzatZZQYs80JA9svoDDLmA)
swsh
on a Glyph run, by default, it is of course applied to every single charcter, looks like this:I would like to apply
swsh
only to the first character (or in other words, to only part of the text string in the GlyphRun), how do I achieve that?Perhaps there is a way to create a GlyphRun using an array of Glyphs? Because I can then find all the individual Glyphs I want based on my preference on typesetting on individual letters, and manually put them together.
Proposal
Extend font.layout to accept Array of Glyphs, and layout them, return a GlyphRun object
The text was updated successfully, but these errors were encountered: