Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Make missing glyphs (particularly, spaces and commas) invisible #4

Open
tabatkins opened this issue Feb 5, 2013 · 5 comments
Open

Comments

@tabatkins
Copy link

It would be great if I could do something like:

<span style='color:red;'>al, tx, mi</span> <span style='color:blue;'>wi, ve, ca</span>

@bpmarkowitz
Copy link
Contributor

This would be pretty easy to do. What is the proper markup for an invisible glyph?

@tabatkins
Copy link
Author

In SVG, just give it a path that won't fill at all. In TTF, I presume it's similar.

@bpmarkowitz
Copy link
Contributor

How would the CSS markup work? Letter spacing?

@tabatkins
Copy link
Author

You can set the leading per-glyph, which is the amount of space that the letter takes up when laying out a word. This can be set to zero or even a negative value, to make a glyph overlap the previous one - this is used for combining characters like accents.

@bpmarkowitz
Copy link
Contributor

Interesting. I am learning a lot about SVG on the fly. I am going to mark this as an enhancement and try to get it added in a future release. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants