Comments (8)
I just wanted to leave a plus one on this please. I would make heavy use of this
from cosmic-text.
font size affects layout, not shaping. Though I'd probably break up runs of different font sizes into different shaping runs to make sure they don't have ligatures connecting them.
from cosmic-text.
Hello, @conradludgate! I noticed that you referenced this specific issue and made some changes to the code. I'm curious to know the current status of those changes. Do you have any plans to submit a PR soon to address the issue? I'm quite interested in having this feature implemented and would appreciate any updates or information you can provide. Thank you!
I believe it worked well enough for my needs. I don't have time right now to continue working on it, but I'm happy for someone to take my commit and open a PR from it
from cosmic-text.
Color was also done in that sort of strange way. Perhaps both color and font size could be a struct specifically for overriding things later on in the process?
from cosmic-text.
How much later though? Because wouldn't font size affect shaping? (it my not, I'm just wondering)
from cosmic-text.
Yeah, I am implementing markdown support for my app using cosmic-text, and for implementing markdown headings this feature would be really handy, so plus one to it.
from cosmic-text.
Hello, @conradludgate! I noticed that you referenced this specific issue and made some changes to the code. I'm curious to know the current status of those changes. Do you have any plans to submit a PR soon to address the issue? I'm quite interested in having this feature implemented and would appreciate any updates or information you can provide. Thank you!
from cosmic-text.
@conradludgate I gave the changes a try, but they're not quite what I had in mind. What I really need is a feature to make spans bigger by adjusting the font size, so I can effectively implement markdown headings.
from cosmic-text.
Related Issues (20)
- Incorrect glyph information for emojis on Windows 11
- Why is the `y_offset` negated? HOT 2
- Urdu numerals display with Persian glyphs HOT 3
- Buffer.layout_cursor reports incorrectly on visual line breaks HOT 3
- Line wrapping/text reflow does not respect buffer size HOT 6
- A case of erroneous glyph placement by the swash scaler HOT 5
- Advanced shaping very slow in debug mode
- Characters can cut each other off during rasterization HOT 3
- Emoji issues
- Can't set font features and variations HOT 1
- The `prune` parameter to `shape_until_scroll` is not documented
- Consider renaming `BufferLine` to `Paragraph` or `BufferParagraph`
- Potential weirdness with non-text characters HOT 4
- Unexpected font selection with named + weight differences HOT 3
- Android: Load fonts from /system/fonts by default? HOT 3
- Buffer::set_text seems very slow? HOT 1
- Slow loading of monospace fonts HOT 7
- Bug: tabs being rendered as oval symbols in cosmic-edit HOT 8
- Whitespace isn't wrapped correctly
- Bidirectional text overflows buffer instead of wrapping
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 cosmic-text.