Comments (3)
With dumpNumberOfInstances I get:
[Heap] seq[GlyphPosition]: #3; bytes: 10833856
[Heap] string: #107367; bytes: 4692843
[Heap] seq[Rune]: #1; bytes: 262176
[Heap] seq[float32]: #1035; bytes: 110712
[Heap] Glyph: #911; bytes: 94744
[Heap] seq[Segment]: #52; bytes: 61968
[Heap] KeyValuePairSeq[system.int, system.int]: #1; bytes: 49184
[Heap] KeyValuePairSeq[system.string, font.Glyph]: #1; bytes: 49184
[Heap] seq[PathCommand]: #37; bytes: 18544
[Heap] seq[uint8]: #1; bytes: 16416
[Heap] seq[float64]: #2; bytes: 16064
[Heap] seq[uint16]: #2; bytes: 14400
[Heap] KeyValuePairSeq[hashes.Hash, vmath.Rect]: #1; bytes: 8224
[Heap] seq[int]: #1; bytes: 8224
[Heap] seq[Glyph]: #1; bytes: 7320
[Heap] KeyValuePairSeq[hashes.Hash, vmath.Vec2]: #1; bytes: 6176
[Heap] KeyValuePairSeq[system.string, system.string]: #1; bytes: 6176
[Heap] seq[LongHorMetricRecrod]: #1; bytes: 4128
[Heap] KeyValuePairSeq[system.string, perf.CountSize]: #1; bytes: 4128
[Heap] seq[uint32]: #1; bytes: 4128
[Heap] KeyValuePairSeq[system.string, types.Chunk]: #1; bytes: 2592
[Heap] seq[seq[Segment]]: #37; bytes: 2368
[Heap] seq[NameRecord]: #1; bytes: 1568
[Heap] KeyValuePairSeq[system.string, font.Font]: #1; bytes: 1568
[Heap] seq[bool]: #4; bytes: 1520
[Heap] Node: #3; bytes: 1056
[Heap] seq[Uniform]: #2; bytes: 768
[Heap] Context: #1; bytes: 448
[Heap] seq[Mat4]: #1; bytes: 288
[Heap] seq[Node]: #5; bytes: 216
[Heap] seq[ShaderAttrib]: #2; bytes: 192
[Heap] TextBox: #1; bytes: 144
[Heap] Font: #1; bytes: 144
[Heap] OtfFont: #1; bytes: 136
[Heap] OS2Table: #1; bytes: 128
[Heap] StringStream: #1; bytes: 120
[Heap] seq[Texture]: #1; bytes: 104
[Heap] seq[string]: #2; bytes: 96
[Heap] Shader: #2; bytes: 96
[Heap] Keyboard: #1; bytes: 88
[Heap] HeadTable: #1; bytes: 80
[Heap] seq[EncodingRecord]: #1; bytes: 64
[Heap] TimeSeries: #2; bytes: 64
[Heap] MaxpTable: #1; bytes: 56
[Heap] Mouse: #1; bytes: 52
[Heap] CmapTable: #1; bytes: 48
[Heap] HheaTable: #1; bytes: 44
[Heap] HmtxTable: #1; bytes: 32
[Heap] NameTable: #1; bytes: 32
[Heap] TableRef[system.string, perf.CountSize]: #1; bytes: 32
[Heap] TableRef[system.string, system.string]: #1; bytes: 32
[Heap] LocaTable: #1; bytes: 24
[Heap] GlyfTable: #1; bytes: 24
[Heap] total number of bytes: 16282819
[Heap] allocs/deallocs: 193737964/193627474
from fidget.
Tested with refc/refc+useMalloc/orc/orc+useMalloc on latest devel, all show the same behaviour. Not sure if this is a Nim regression or fidget (or typography) bug
from fidget.
I don't clean up letter after they are rasterized even if you remove it from text. This is usually not a problem for alphabet based languages but could be an issue for CJK. I don't have a good solution for this yet.
from fidget.
Related Issues (20)
- Reverse the order?
- [Question] Complex input? HOT 5
- Password field HOT 1
- Duplicate union type member
- Not able to draw in memory image HOT 1
- README update to resolve dependency issues on Debian/Ubuntu based distros HOT 1
- Tab in Text Not Usable HOT 1
- Figma Plugin needs update HOT 1
- issue report about Figma export ability HOT 3
- Support for min/max constraints HOT 2
- 🐞 : Unable to run examples, requires force install of `typography@#HEAD` HOT 4
- 🐞 : Unhandled exception HOT 2
- No html file generated HOT 6
- "Manifest error: Missing editorType in manifest" when trying to add fidget-plugin HOT 2
- HiDPI (& fracional) support?
- Undeclared idientifier: laInherit
- Text editor concept
- Fidget status? HOT 2
- Missing Linux Wayland support
- putting video stream in a control HOT 1
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 fidget.