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
Mikko Mononen
e70a78e42e
Merge pull request #442 from gavinhoward/master
Mark devicePixelRatio unused in glnvg_renderViewport
7 years ago
Gavin Howard
5022b370e4
Mark devicePixelRatio unused in glnvg_renderViewport
7 years ago
Mikko Mononen
364911b596
Merge pull request #431 from olliwang/font
Resets font atlas when it is full.
7 years ago
Olli Wang
645861c804
Renders glyph’s bitmap data on demand.
This commit updates font stash to render glyph's bitmap data on demand. This change is intended to fix the issue that `nvgTextBounds()` may return an unreliable result when font atlas is full. This situation usually happens when auto scaling a large font text to fit a small rectangle.
The `fons__getGlyph()` function now accepts a new parameter indicating whether bitmap data is optional, and only `nvgText()` requires it. All of `nvgTextGlyphPositions()`, `nvgTextBreakLines()`, `nvgTextBounds()` and `nvgTextBoxBounds()` functions are changed to work without glyph’s bitmap data.
7 years ago
Mikko Mononen
98e551351d
Merge pull request #412 from AndrewBelt/master
Only apply fallback if GL_DEPTH24_STENCIL8 is defined
7 years ago
Andrew Belt
f494937f27
Merge branch 'master' of https://github.com/memononen/nanovg
7 years ago
Andrew Belt
448af072d6
Only apply fallback if GL_DEPTH24_STENCIL8 is defined
7 years ago
Mikko Mononen
52f2d6bf76
Merge pull request #411 from AndrewBelt/master
Support ~2010 Mac graphics cards (and possibly others) with nvgluCreateFramebuffer patch
7 years ago
Andrew Belt
bfd5d11f27
Merge branch 'master' of https://github.com/memononen/nanovg
7 years ago
Andrew Belt
ee6b7346cc
Add GL_DEPTH24_STENCIL8 as a fallback when creating render buffer object
for nvgluCreateFramebuffer
7 years ago
Mikko Mononen
e3033362e5
Merge pull request #405 from Joshua-Ashton/master
Fix MSVC 2017 compiler warning
7 years ago
Joshua Ashton
ac6a656898
Fix MSVC 2017 compiler warning
7 years ago
Mikko Mononen
67e2ecf736
Merge pull request #404 from DagAgren/patch-1
Fix clang compiler warnings
7 years ago
Dag Ågren
b124bbbaf5
Fix implicit conversion warning.
7 years ago
Dag Ågren
3b54182b02
Remove unused variable.
7 years ago
Mikko Mononen
a2784bad3a
Merge pull request #395 from olliwang/metal
Adds link of the Metal port.
7 years ago
Olli Wang
43aeba25a4
Adds link of the Metal port.
I just implmeneted the native Metal port of NanoVG. ;)
7 years ago
satoren
c7f70787c9
Fix crash on 32bit platform
7 years ago
Mikko Mononen
4f1c6d302a
Fix for #391
Fixed return value of nvgText to be the position after the rendered
string, also fixed scaling of the value.
7 years ago
Mikko Mononen
30e1c98175
Merge pull request #386 from olliwang/flags
Allows to turn on/off antialias for shapes.
7 years ago
Olli Wang
17321202da
Allows to turn on/off antialias for shapes.
This commit adds a new `nvgShapeAntiAlias()` function for turning on/off antialias for specific shapes.
7 years ago
Mikko Mononen
70fb4b0344
Merge pull request #387 from olliwang/quad
Prevents uploading unused vertices to GPU.
7 years ago
Olli Wang
f87cdf1041
Prevents uploading unused vertices to GPU.
This commit fixes the bug that `glnvg__renderFill()` allocates unused quad vertices for `GLNVG_CONVEXFILL`, which causes unused vertices uploaded to the GPU.
Besides, the quad for the `GLNVG_FILL` type is changed to drawn by `GL_TRIANGLE_STRIP` instead of `GL_TRIANGLES` so two more vertices can be reduced per quad.
In one of my test case, I need to paste an image to a framebuffer about 5,000 times, and this change would reduce the total number of uploaded vertices from `52,106` to `22,476`. It is good for FPS and battery consumption.
7 years ago
Mikko Mononen
7e42ac6099
Merge pull request #385 from olliwang/discard
Discards fragments as early as possible.
7 years ago
Olli Wang
7e11b11177
Discards fragments as early as possible.
This commit moves the `discard` instruction in the fragment shader to an earlier position to avoid performing calculations whose results are unused.
7 years ago
Mikko Mononen
72bac5d98b
Update README.md
Highlighted the need for render target stencil buffer.
7 years ago
Mikko Mononen
c75fc0bfcf
Merge pull request #359 from olliwang/glext
Fixes how glext header is included.
8 years ago
Olli Wang
4ac2b44ea7
Fixes how glext header is included.
This commit fixes the issue caused by #357 that nanovg failed to compile on iOS due to the wrong way of including glext header.
8 years ago
Mikko Mononen
51284049e2
Merge pull request #357 from ckaran/master
Bug fixes to compile under OS X 12.3
8 years ago