Comments (8)
I'm wondering if anyone can think of any unforeseen consequences by doing this?
Some people use uni00A0 on purpose between words or before and after punctuation.
from zilla-slab.
@moyogo This was an assumption I had. Thank you!
from zilla-slab.
Right, so if anyone else uses nbsp on purpose, then they won't get the 'blackout' effect in the middle of those words, if Marc changes the feature only to remove the sub uni00A0 by space.black;
rule.
The docs for the family could tell people who need to use nbsp with blackout to use another character that does the same thing (https://en.wikipedia.org/wiki/Non-breaking_space#Width_variation) and change that rule to one that uses those other non breaking space characters.
from zilla-slab.
How about substituting uni00A0 only in that context (at the end of the line)?
from zilla-slab.
You mean, substituting it only when it is followed by another character?
from zilla-slab.
Thanks @moyogo. I've rewritten the feature in the following manner:
sub space by space.black;
sub uni00A0' @all by space.black;
This does the following:
- Space will always be subbed by space.black
- uni00A0 will only get substituted if uni00A0 is followed by any glyph in the class
@all
Here's a demo of the liga feature being enabled and disabled. The text uses uni00A0 instead of spaces. A uni00A0 glyph has also been appended to the end to mimic the same pattern as GF Docs. It seems to be working just fine.
I'll make a quick test font now and try it out in GF Docs.
from zilla-slab.
The string below has uni00A0 instead of a space... its works nicely.
@davelab6 shall we proceed with this contextual sub approach?
from zilla-slab.
from zilla-slab.
Related Issues (20)
- Recommended Fallback HOT 1
- Zilla Slab Highlight at < 100% opacity shows fully-opaque lines between characters while editing
- "Wh" looks very strange
- No support for non-breaking space (nbsp) HOT 2
- Cannot apply tabular-nums in Chrome
- tabular-nums issue in Chrome
- Wiki changes
- CODE_OF_CONDUCT.md file missing
- Cyrillic support
- No Vietnamese support
- Numeric characters are not rendered uniformly HOT 2
- Whre Can I Download Zilla Stab Hightlight (Colorful edition) Fonts? HOT 1
- Request of characters: needed when writing about graphematics, typesetting, writing systems
- Request of characters: for advanced typesetting (bibliographies, novels, charts, etc.)
- Request of characters: useful as list itemizers
- Request of characters: for advanced punctuation
- Request of characters: needed in mathematics, geometry, etc.
- Compiled OTF fonts have numerous characters (code-points) without defined glyphs HOT 1
- Erratic embeddability / Vendor ID specification HOT 3
- Read-only Embedded Restricted font
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zilla-slab.