Comments (4)
Any idea how this works? I think I saw something about underline thickness in the metrics spec but I'm assuming we create the control points ourselves?
nope... might even be more of an IS.Drawing/renderer level thing where we just need capture and pass-a-long enough metadata about the glyphs to extrapolate the correct underline location across each line.
So things like triggering line start/end callbacks (with some line level metadata possibly, a rect being the most likely item)
Making sure we expose underline widths (based on fontsize), and the underline anchor points etc (might just be a case or returning exactly where the baseline is)
from fonts.
Any idea how this works? I think I saw something about underline thickness in the metrics spec but I'm assuming we create the control points ourselves?
from fonts.
Ok.... I'll start investigating what we should capture from the font metrics at least and go from there. I might have a look at how Avalonia handle it.
from fonts.
Fixed with #251
from fonts.
Related Issues (20)
- TextMeasurer.TryMeasureCharacterBounds exception on Arial font with specific RTL text HOT 1
- Recent commit "Enumerate available fonts through the native API on macOS" breaks UWP native build. HOT 32
- SystemFontCollection doesn't list open type font.
- Race-condition when writing 32-bit png images with text in parallel. HOT 14
- MAUI.Android error: cant use FontCollection() add a font stream HOT 3
- Problem with wrapping long words HOT 3
- DrawText throws System.NotSupportedException: Specified method is not supported. HOT 14
- Problem with font "PMINGLIU.ttf", InvalidFontTableException: 'Unable to find table'
- Problem with font "Sumana", wrong left parenthesis character HOT 2
- DrawText with horizontal alignment doesn't appear to work properly HOT 6
- DrawText generates text with DFKai-SB or KaiU fonts differently than expected HOT 18
- TextMeasurer.Measure returns incorrect width HOT 4
- TextMeasurer.MeasureSize: Incorrect text height calculation HOT 5
- Nuget package for SixLabors.Fonts 1.0.0 fails to Mutate the image. HOT 1
- Wrong character orientation when drawing brackets HOT 2
- Problem with font "BNazanin.ttf", System.NullReferenceException
- Inter Variable rendering incorrectly HOT 5
- TextRenderer.RenderTextTo throws ArgumentOutOfRangeException when use WordBreaking.BreakAll and small WrappingLength
- Issue 367 introduced lingering whitespaces HOT 1
- TextBuilder.GenerateGlyphs fails with ArgumentOutOfRangeException HOT 3
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 fonts.