Andrew Belt
5fdf007a58
In fontstash, switch back to ascender-descender height from em height.
5 days ago
Andrew Belt
607f93ede0
Update stb_image to 2.30.
5 days ago
Andrew Belt
b43a8f2ede
Merge remote-tracking branch 'upstream/master'
6 days ago
Andrew Belt
6c3c36bccc
Update to stb_image 2.30.
6 days ago
Mikko Mononen
ce3bf745eb
Merge pull request #677 from chentong-net/iphone-png-conversion-in-mem
Fix iPhone PNG color issues when loading images from memory in NanoVG
1 week ago
chentong-net
5395a44be0
fix(image): enable iPhone PNG conversion in nvgCreateImageMem
1 week ago
Jing Zhang
f93799c078
Merge pull request #642 from mulle-nat/typofix
small typo fix and documentation fix
2 years ago
vincentz
d146ff581e
Update link to vinjn's processing api
2 years ago
Mikko Mononen
7544c114e8
Merge pull request #649 from olliwang/maxstates
Allows setting the `NVG_MAX_STATES` number.
3 years ago
Olli Wang
8f41a7bef7
Allows setting the `NVG_MAX_STATES` number.
Currently, `NVG_MAX_STATES` is set to 32. But it’s not enough sometimes in my case. This commit allows defining the preferred `NVG_MAX_STATES` number.
3 years ago
Nat!
f0088489f8
small typo fix and documentation fix
3 years ago
Mikko Mononen
397f3300bc
Merge pull request #626 from olliwang/atlas
Fixes memory leaks caused by full font images.
3 years ago
Olli Wang
4e42b6c659
Fixes memory leaks due to not releasing font images properly.
3 years ago
Mikko Mononen
5f65b43f7a
Merge pull request #623 from olliwang/stbtt
Fixes stbtt implemention
4 years ago
Olli Wang
2615db02e5
Fixes stbtt implemention.
This commit fixes the issue mentioned by 0b37350df7 (r63095702)
4 years ago
Mikko Mononen
645e9147a8
Merge pull request #621 from olliwang/freetype
Fixes FreeType errors when dealing with multiple NVGcontext objects.
4 years ago
Olli Wang
0b37350df7
Fixes FreeType errors when dealing with multiple NVGcontext objects.
Originally there is only a shared `FT_Library` object. However, if we create multiple `NVGcontext` objects and as soon as we delete one, the shared `FT_Library` object will be released, too. And that would cause a problem for the rest of `NVGcontext` objects.
4 years ago
Mikko Mononen
e75cf72b4a
Merge pull request #620 from mulle-nat/mulle-nat-patch-fonsDeleteInternal
Update fontstash.h
4 years ago
Nat!
ba85215f10
Update fontstash.h
* change call order in `fonsDeleteInternal` so that free memory isn't passed to `fons__tt_done`
4 years ago
Andrew Belt
0bebdb314a
Don't skip white space in nvgTextBreakLines().
4 years ago
Andrew Belt
14a22f1b25
Make nvgGlobalAlpha() only set tint alpha, rather than resetting tint to white with the given alpha.
4 years ago
Richie Hindle
ccaaf90c80
Merge branch 'master' into shared-context
4 years ago
Andrew Belt
ade6e6c060
Add nvgAlpha() and nvgTint() which multiply existing alpha and state instead of resetting it.
4 years ago
Richie Hindle
5fdfbffd2b
Shared contexts; feature complete but relatively untested so far.
4 years ago
Andrew Belt
9b5c4109a0
Merge branch 'tint'
4 years ago
Andrew Belt
6fa0b55abc
Revert "Update stb_image and stb_truetype"
This reverts commit e5f559523f .
4 years ago
Andrew Belt
3974a8b856
Add nvgGetGlobalTint().
4 years ago
Andrew Belt
911b7edf17
Revert "Fixes the issue that font size is inconsistent."
This reverts commit 69e1a47511 .
Only reverts fontstash.h, not the whole commit.
4 years ago
Andrew Belt
d201a1cf69
Merge branch 'master' of https://github.com/memononen/nanovg
4 years ago
Andrew Belt
641e4ab91b
Add nvgGlobalTint
4 years ago
Mikko Mononen
077b65e0cf
Merge pull request #604 from mulle-nat/ci
Continous Integration for nanvog
5 years ago
Nat!
0bfd2c21cc
New ci.yml. Build nanovg on every push on ubuntu.
Does not build examples (yet), due to technical
problems with the older ubuntu version being used
by github.
5 years ago
Mikko Mononen
e906c5bae5
Merge pull request #601 from mulle-nat/fxingtabs
Fixed text vanishing when the transform is vertically flipped
5 years ago
Nat!
0faac6f91a
less whitespace
5 years ago
Nat!
621e0b8d35
Fixed text vanishing when the transform is vertically flipped
5 years ago
Mikko Mononen
c35e80c3fe
Merge pull request #591 from Iniquitatis/patch-1
Single-byte typo fix
5 years ago
Dominus Iniquitatis
fb785932a0
Single-byte typo fix
5 years ago
Mikko Mononen
a90ccc20cc
Merge pull request #588 from d4tocchini/freetype-hint-fix
fix for freetype glyph loading
5 years ago
D4
30b9f3e047
Squashed wonky FT kerning via FT_Load_Glyph flag FT_LOAD_TARGET_LIGHT
5 years ago
Mikko Mononen
e628d62afb
Merge pull request #587 from christophe-f8/master
Added a preprocessor definition to disable the use of stb_image
5 years ago
My Name
0fa06d96f1
Removed CMakeLists.txt
5 years ago
My Name
4c7eb2f63d
Added a preprocessor definition to disable the use of stb_image + Added CMakeLists
5 years ago
Mikko Mononen
2bead03bea
Merge pull request #573 from geoffthemedio/patch-1
Fixed Signed/Unsigned Comparison Warning
6 years ago
Geoff
52265fe278
Fixed Signed/Unsigned Comparison Warning
In Visual Studio 17, I get warnings related to these variables:
````
fontstash.h(241): warning C4018: '<': signed/unsigned mismatch
fontstash.h(242): warning C4018: '<': signed/unsigned mismatch
````
Making them unsigned fixes it.
6 years ago
Mikko Mononen
426aa3f149
Fix for #570 : round glyph positions to pixels using floor
6 years ago
Mikko Mononen
bff4734a9a
Merge pull request #567 from olilarkin/fix-webgl-warning
Bind a dummy texture in setUniforms when compiling with emscripten
6 years ago
Oli Larkin
35dbc98160
modify to use dummy texture even without emscripten
6 years ago
Mikko Mononen
e281ffcabd
Fixed nvgTextBreakLines returning bad minx
- nvgTextBreakLines: wordMinX was relative to rowStartX, which caused
problems when rowStartX change on line break, but wordMinX was still
relative to the previous rowStartX
- fixed font size on perf graphs
- made demo to use row minx/maxx instead of row->width
- fixed demo hover distance
6 years ago
Oli Larkin
3e986cdf4b
call glnvg__renderCreateTexture() in glnvg__renderCreate
6 years ago
Oli Larkin
d98041b4ee
Bind a dummy texture in setUniforms when compiling with emscripten
fixes the WebGL error "RENDER WARNING: there is no texture bound to the unit 0"" in Chrome
6 years ago