Mikko Mononen
ce3bf745eb
Merge pull request #677 from chentong-net/iphone-png-conversion-in-mem
...
CI / build (ubuntu-latest) (push) Waiting to run
Fix iPhone PNG color issues when loading images from memory in NanoVG
2026-02-19 15:29:32 +02:00
chentong-net
5395a44be0
fix(image): enable iPhone PNG conversion in nvgCreateImageMem
2026-02-19 21:14:28 +08:00
Jing Zhang
f93799c078
Merge pull request #642 from mulle-nat/typofix
...
small typo fix and documentation fix
2023-08-26 16:32:21 -07:00
vincentz
d146ff581e
Update link to vinjn's processing api
2023-08-26 16:30:06 -07:00
Mikko Mononen
7544c114e8
Merge pull request #649 from olliwang/maxstates
...
Allows setting the `NVG_MAX_STATES` number.
2022-09-26 00:17:20 +03:00
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.
2022-09-26 02:04:09 +08:00
Nat!
f0088489f8
small typo fix and documentation fix
2022-08-04 01:05:05 +02:00
Mikko Mononen
397f3300bc
Merge pull request #626 from olliwang/atlas
...
Fixes memory leaks caused by full font images.
2022-03-27 21:03:39 +03:00
Olli Wang
4e42b6c659
Fixes memory leaks due to not releasing font images properly.
2022-03-28 00:42:30 +08:00
Mikko Mononen
5f65b43f7a
Merge pull request #623 from olliwang/stbtt
...
Fixes stbtt implemention
2022-01-09 14:16:40 +02:00
Olli Wang
2615db02e5
Fixes stbtt implemention.
...
This commit fixes the issue mentioned by 0b37350df7 (r63095702)
2022-01-09 12:30:49 +08:00
Mikko Mononen
645e9147a8
Merge pull request #621 from olliwang/freetype
...
Fixes FreeType errors when dealing with multiple NVGcontext objects.
2021-12-02 20:05:03 +02:00
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.
2021-12-03 00:23:26 +08:00
Mikko Mononen
e75cf72b4a
Merge pull request #620 from mulle-nat/mulle-nat-patch-fonsDeleteInternal
...
Update fontstash.h
2021-11-01 22:25:49 +02:00
Nat!
ba85215f10
Update fontstash.h
...
* change call order in `fonsDeleteInternal` so that free memory isn't passed to `fons__tt_done`
2021-10-31 22:28:28 +01:00
Mikko Mononen
077b65e0cf
Merge pull request #604 from mulle-nat/ci
...
Continous Integration for nanvog
2020-12-25 21:10:13 +02:00
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.
2020-12-25 16:43:36 +01:00
Mikko Mononen
e906c5bae5
Merge pull request #601 from mulle-nat/fxingtabs
...
Fixed text vanishing when the transform is vertically flipped
2020-12-21 12:07:08 +02:00
Nat!
0faac6f91a
less whitespace
2020-12-21 10:59:15 +01:00
Nat!
621e0b8d35
Fixed text vanishing when the transform is vertically flipped
2020-12-20 12:45:20 +01:00
Mikko Mononen
c35e80c3fe
Merge pull request #591 from Iniquitatis/patch-1
...
Single-byte typo fix
2020-11-05 22:12:57 +02:00
Dominus Iniquitatis
fb785932a0
Single-byte typo fix
2020-11-05 04:56:25 +03:00
Mikko Mononen
a90ccc20cc
Merge pull request #588 from d4tocchini/freetype-hint-fix
...
fix for freetype glyph loading
2020-10-01 14:16:13 +03:00
D4
30b9f3e047
Squashed wonky FT kerning via FT_Load_Glyph flag FT_LOAD_TARGET_LIGHT
2020-10-01 00:47:50 -07:00
Mikko Mononen
e628d62afb
Merge pull request #587 from christophe-f8/master
...
Added a preprocessor definition to disable the use of stb_image
2020-09-16 12:20:58 +03:00
My Name
0fa06d96f1
Removed CMakeLists.txt
2020-09-16 11:11:26 +09:00
My Name
4c7eb2f63d
Added a preprocessor definition to disable the use of stb_image + Added CMakeLists
2020-09-15 11:41:34 +09:00
Mikko Mononen
2bead03bea
Merge pull request #573 from geoffthemedio/patch-1
...
Fixed Signed/Unsigned Comparison Warning
2020-03-20 22:14:02 +02:00
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.
2020-03-20 09:51:00 +01:00
Mikko Mononen
426aa3f149
Fix for #570 : round glyph positions to pixels using floor
2020-03-18 23:11:00 +02:00
Mikko Mononen
bff4734a9a
Merge pull request #567 from olilarkin/fix-webgl-warning
...
Bind a dummy texture in setUniforms when compiling with emscripten
2020-03-11 23:12:37 +02:00
Oli Larkin
35dbc98160
modify to use dummy texture even without emscripten
2020-03-10 21:27:36 +00:00
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
2020-03-07 23:01:56 +02:00
Oli Larkin
3e986cdf4b
call glnvg__renderCreateTexture() in glnvg__renderCreate
2020-03-05 22:10:53 +00:00
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
2020-03-02 23:18:05 +00:00
Mikko Mononen
6570b56926
Merge pull request #564 from olliwang/demo
...
Fixes demo’s font sizes.
2020-02-28 12:50:58 +02:00
Mikko Mononen
db50e12d03
Merge pull request #563 from olliwang/linegap
...
Fixes the issue that line gap may ruin the text layout.
2020-02-28 12:49:06 +02:00
Olli Wang
79561dc47f
Fixes demo’s font sizes.
...
This commit fixes the demo’s font sizes for the changes in #558 , which makes the rendered font size matches what you saw on other native apps. The demo used bigger font sizes than they actually were. This commit deduces the font sizes to match the original demo’s look.
2020-02-28 18:27:48 +08:00
Mikko Mononen
492df633f1
Merge pull request #560 from olliwang/font
...
Support for resetting fallback fonts.
2020-02-28 12:06:32 +02:00
Olli Wang
c519ae578b
Support for resetting fallback fonts.
...
This commit adds `nvgResetFallbackFontsId()` and `nvgResetFallbackFonts()` functions for resetting fallback fonts.
2020-02-28 17:59:48 +08:00
Mikko Mononen
f3825a08ce
Merge pull request #561 from olilarkin/rendertriangles_fringe
...
Pass fringe parameter to renderTriangles
2020-02-28 11:59:23 +02:00
Olli Wang
528dc4efb5
Fixes the issue that line gap may ruin the text layout.
2020-02-28 17:34:04 +08:00
Oli Larkin
5a006cdca4
Pass fringe parameter to renderTriangles, fixes bad clipping of text on high DPI screens
2020-02-26 12:12:31 +00:00
Mikko Mononen
4ae538b10e
Merge pull request #559 from olliwang/font
...
Support for loading a certain font face from a font file.
2020-02-25 12:59:19 +02:00
Olli Wang
8851f025e4
Support for loading a certain font face from a font file.
...
This commit allows loading a certain font face from a font collection file such as TTC.
2020-02-20 13:23:33 +08:00
Mikko Mononen
b2337d9ead
Merge pull request #558 from olliwang/font
...
Fixes the issue that font size is inconsistent.
2020-02-10 13:35:45 +02:00
Olli Wang
69e1a47511
Fixes the issue that font size is inconsistent.
...
This commit fixes the issue that font size is inconsistent between different font files. `stb_truetype.h` is also updated to the latest version to support additional font types such as OpenType fonts.
2020-02-10 17:06:58 +08:00
Mikko Mononen
1f9c8864fc
Update README.md
...
Fix fox #542 , indicate font licenses
2019-04-22 22:03:20 +03:00
Mikko Mononen
b6ac7c440f
Updated readme
2019-04-22 21:56:50 +03:00
Mikko Mononen
f4069e6a1a
Merge pull request #508 from kennysharma/master
...
Fix compile issue for missing { in fontstash.h
2018-09-27 22:19:51 +03:00