Comments (3)
Hey Benedikt, thanks for the kind words, I'm happy to hear that the library is proving useful to you!
I've added the Path.Data
function to get the private d []float64
data field, however the Scanner
interface actually allows you to fully retrieve all path data and is a cleaner approach. What does the scanner not allow you to get?
from canvas.
I've added the
Path.Data
function to get the privated []float64
data field
Thank you very much for the quick reply and the addition.
however the
Scanner
interface actually allows you to fully retrieve all path data and is a cleaner approach. What does the scanner not allow you to get?
You are right, I have no idea how I did not see the Scanner.Cmd()
at first glance - perhaps it somehow got lost in my IDE autocomplete. It appears to be all there.
What I thought might be useful for the next major version would be to implement the existing renderers via the Scanner interface to avoid baking them into the Path struct.
from canvas.
That's a great idea, especially for the OpenGL renderer and maybe the Fyne and Gio renderers!
from canvas.
Related Issues (20)
- Use fontconfig
- Single line text in a textbox doesn't return OutlineBounds HOT 2
- Bug Report: Index Out of Range Panic for Empty String in text.go HOT 1
- Bug Report: Text Alignment Issue for Persian/Arabic Strings with Numbers HOT 1
- Recent font finding update changes how some font names are used in code HOT 2
- Request to make mmPerEm from FontFace public HOT 1
- Word wrap fail inside a textbox under specific conditions. HOT 6
- html and css layout support HOT 1
- Inconsistent rendering when using context `SetZIndex()` HOT 2
- [Question] How to set the background color when drawing font images in PNG format HOT 2
- getSFNTMetadata bug HOT 4
- break line incorrect at the first line HOT 7
- GlyphsToItems bug HOT 1
- panic during path intersection calculation HOT 5
- Fix basic template example on Getting Started wiki page HOT 3
- load font error: GSUB: lookupOrderOffset must be NULL HOT 4
- Simple text with stroke border example HOT 3
- [bug] panic: runtime error: index out of range [3] with length 3 HOT 4
- How to import a PDF file from local storage? HOT 2
- Font parsing: bad length for subtable 0 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 canvas.