Comments (11)
While I see this as a useful feature, it is a bit of a slippery slope, UI-wise, as it would make it go into the direction of rich text formatting. Your suggestion at #43 takes this indeed a step further.
But before I break my head and think of what the user interface for this could possibly be like: I don't think uharfbuzz exposes this at the moment. Or am I missing something?
from fontgoggles.
In uharfbuzz that would be the value
of the feature (in other types of lookups non-zero value means enable, here it selects the alternate, 1 for 1st, 2 for 2nd etc.)
from fontgoggles.
I mean the range thing, as in:
"aalt[3:5]=2" 2 3 5 # Turn 2nd alternate on for range
from fontgoggles.
I’m OK if this and #43 are out of scope, it just happens that the fonts I do right now are full of character-level alternates.
from fontgoggles.
The range would be for #43 not this one, and apparently it isn’t supported.
from fontgoggles.
But wouldn't you want to choose an alternate on a per-character basis?
Btw. I didn't know about the extended meaning of the feature value: thanks, that's very useful.
from fontgoggles.
But if this feature is already useful with one value for the entire string, then I see a UI possibility: perhaps control-click on the feature tag box could bring up a menu with alt indices.
from fontgoggles.
But wouldn't you want to choose an alternate on a per-character basis?
Usually, but that wouldn’t be a requirement (I might want to test, e.g, a ssty
feature in a math font, and so applying it to all charters would be fine or even what I really want).
from fontgoggles.
I have implemented this with a contextual menu for GSUB feature tags. It allows selection of an alternate number regardless of whether the feature actually uses alternates, as (u)harfbuzz doesn't expose an API to find this out quickly, and I don't want to parse GSUB with fontTools just to get this info.
TODO: document this on the website. Will do that when I'm closer to release (which should be soon anyway).
from fontgoggles.
FG v1.1 just landed containing this feature, and I wrote a note about it on the website.
from fontgoggles.
Thanks!
from fontgoggles.
Related Issues (20)
- Feature request: paragraph text view with line-breaking HOT 2
- Support DS5 discrete axes HOT 1
- Default column widths are wrong on newer versions of macOS
- Feature Request: Character / glyph table HOT 5
- Should upgrade to Python 3.11 HOT 5
- Request support for multi-line text preview HOT 1
- Apply kerning between Hiragana and Katakana HOT 2
- FG fails entire string if a character is used that does not exist in unicode
- Feature request: tracking slider HOT 7
- Feature Request: Platform independence. HOT 2
- Visualize which fonts implement which features
- Need to improve the usage of uharfbuzz' draw funcs
- Need to fix a failure with recent uharfbuzz
- Need to adapt notarization process to newer Apple tool HOT 2
- “Kind” for file extensions in Finder HOT 5
- Mark text lines HOT 1
- Release? HOT 2
- Vanilla 0.3.0 broke the layout on macOS 10.10
- Move segmenting.py to fonttools HOT 2
- Idea: Overlay fonts to compare vertical positions &c HOT 2
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 fontgoggles.