Nat!
0faac6f91a
less whitespace
4 years ago
Nat!
621e0b8d35
Fixed text vanishing when the transform is vertically flipped
4 years ago
Mikko Mononen
c35e80c3fe
Merge pull request #591 from Iniquitatis/patch-1
Single-byte typo fix
4 years ago
Dominus Iniquitatis
fb785932a0
Single-byte typo fix
4 years ago
Mikko Mononen
a90ccc20cc
Merge pull request #588 from d4tocchini/freetype-hint-fix
fix for freetype glyph loading
4 years ago
D4
30b9f3e047
Squashed wonky FT kerning via FT_Load_Glyph flag FT_LOAD_TARGET_LIGHT
4 years ago
Mikko Mononen
e628d62afb
Merge pull request #587 from christophe-f8/master
Added a preprocessor definition to disable the use of stb_image
4 years ago
My Name
0fa06d96f1
Removed CMakeLists.txt
4 years ago
My Name
4c7eb2f63d
Added a preprocessor definition to disable the use of stb_image + Added CMakeLists
4 years ago
Mikko Mononen
2bead03bea
Merge pull request #573 from geoffthemedio/patch-1
Fixed Signed/Unsigned Comparison Warning
5 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.
5 years ago
Mikko Mononen
426aa3f149
Fix for #570 : round glyph positions to pixels using floor
5 years ago
Mikko Mononen
bff4734a9a
Merge pull request #567 from olilarkin/fix-webgl-warning
Bind a dummy texture in setUniforms when compiling with emscripten
5 years ago
Oli Larkin
35dbc98160
modify to use dummy texture even without emscripten
5 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
5 years ago
Oli Larkin
3e986cdf4b
call glnvg__renderCreateTexture() in glnvg__renderCreate
5 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
5 years ago
Mikko Mononen
6570b56926
Merge pull request #564 from olliwang/demo
Fixes demo’s font sizes.
5 years ago
Mikko Mononen
db50e12d03
Merge pull request #563 from olliwang/linegap
Fixes the issue that line gap may ruin the text layout.
5 years ago
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.
5 years ago
Mikko Mononen
492df633f1
Merge pull request #560 from olliwang/font
Support for resetting fallback fonts.
5 years ago
Olli Wang
c519ae578b
Support for resetting fallback fonts.
This commit adds `nvgResetFallbackFontsId()` and `nvgResetFallbackFonts()` functions for resetting fallback fonts.
5 years ago
Mikko Mononen
f3825a08ce
Merge pull request #561 from olilarkin/rendertriangles_fringe
Pass fringe parameter to renderTriangles
5 years ago
Olli Wang
528dc4efb5
Fixes the issue that line gap may ruin the text layout.
5 years ago
Oli Larkin
5a006cdca4
Pass fringe parameter to renderTriangles, fixes bad clipping of text on high DPI screens
5 years ago
Mikko Mononen
4ae538b10e
Merge pull request #559 from olliwang/font
Support for loading a certain font face from a font file.
5 years ago
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.
5 years ago
Mikko Mononen
b2337d9ead
Merge pull request #558 from olliwang/font
Fixes the issue that font size is inconsistent.
5 years ago
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.
5 years ago
Mikko Mononen
1f9c8864fc
Update README.md
Fix fox #542, indicate font licenses
6 years ago
Mikko Mononen
b6ac7c440f
Updated readme
6 years ago
Mikko Mononen
f4069e6a1a
Merge pull request #508 from kennysharma/master
Fix compile issue for missing { in fontstash.h
6 years ago
Kenny Sharma
97fc85668f
Fix compile issue for missing { in fontstash.h
6 years ago
Mikko Mononen
53599bb4a6
Merge pull request #507 from olliwang/freetype
Fixes memory leaks of freetype.
6 years ago
Olli Wang
9b27dc3894
Fixes memory leaks of freetype.
This commit fixes the issue that freetype library isn’t released in `fonsDeleteInternal()` and causes memory leaks.
6 years ago
Mikko Mononen
fe4ba5f3ba
Merge pull request #506 from olliwang/gl
Fixes the bug that gl may fail to draw fringes.
6 years ago
Olli Wang
e7154e104e
Fixes the bug that gl may fail to draw fringes.
This commit fixes the bug that `glnvg__convexFill()` tried to draw fringes depending on whether `NVG_ANTIALIAS` is set. However, #386 adds `nvgShapeAntiAlias()` for chaning anti-alias state explicitly, and `glnvg__convexFill()` would cause error If the anti-alias state is disabled.
6 years ago
Mikko Mononen
cfa175a0b9
Merge pull request #392 from satoren/crash_on_32bit_platform
Fix example crash on 32bit platform
6 years ago
Mikko Mononen
be1a08273f
Merge pull request #503 from sbarisic/patch-1
Update README.md with another project link
6 years ago
Saša Barišić
51181a6a08
Update README.md with another project link
6 years ago
Mikko Mononen
05ca0dbf81
Merge pull request #498 from olliwang/font
Forces autohint when loading glyph using FreeType.
6 years ago
Olli Wang
83da90e1c8
Forces autohint when loading glyph using FreeType.
This commit adds the `FT_LOAD_FORCE_AUTOHINT` parameter to `FT_Load_Glyph()` to fix wonky characters.
6 years ago
Mikko Mononen
4b91cf0006
Merge pull request #495 from olliwang/atlas
Fixes text corruption on atlas rebuild.
6 years ago
Olli Wang
8d1b1e7d15
Fixes text corruption on atlas rebuild.
This commit fixes #494 .
6 years ago
Mikko Mononen
6fa3b3d519
Merge pull request #477 from olliwang/size
Fixes the type of view size.
7 years ago
Olli Wang
6b6e3a5246
Fixes the type of view size.
This commit changes the type of the view size accepted by `nvgRenderFrame()` from `int` to `float` so it matches the type defined in `GLNVGcontext`. This would prevent a framebuffer missing a pixel in final rendering result.
7 years ago
Mikko Mononen
30a943cb9c
Merge remote-tracking branch 'origin/master'
7 years ago
Mikko Mononen
dfa31dfba2
Fix for #471
- disable stroke AA gradient when not using AA
7 years ago
Mikko Mononen
8626a8da5d
Merge pull request #469 from strfry/master
Use GLES2 glTex[Sub]Image2D code paths also for GL2
7 years ago
JonathanS
6ce863cc57
Use GLES2 glTex[Sub]Image2D code paths also for GL2
7 years ago