Fix incorrect glyph index in nk_font_bake
This commit is contained in:
parent
f60c63ad12
commit
23cb43f5eb
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuklear",
|
"name": "nuklear",
|
||||||
"version": "4.10.5",
|
"version": "4.10.6",
|
||||||
"repo": "Immediate-Mode-UI/Nuklear",
|
"repo": "Immediate-Mode-UI/Nuklear",
|
||||||
"description": "A small ANSI C gui toolkit",
|
"description": "A small ANSI C gui toolkit",
|
||||||
"keywords": ["gl", "ui", "toolkit"],
|
"keywords": ["gl", "ui", "toolkit"],
|
||||||
|
@ -16779,7 +16779,6 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei
|
|||||||
|
|
||||||
/* query glyph bounds from stb_truetype */
|
/* query glyph bounds from stb_truetype */
|
||||||
const stbtt_packedchar *pc = &range->chardata_for_range[char_idx];
|
const stbtt_packedchar *pc = &range->chardata_for_range[char_idx];
|
||||||
if (!pc->x0 && !pc->x1 && !pc->y0 && !pc->y1) continue;
|
|
||||||
codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx);
|
codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx);
|
||||||
stbtt_GetPackedQuad(range->chardata_for_range, (int)width,
|
stbtt_GetPackedQuad(range->chardata_for_range, (int)width,
|
||||||
(int)height, char_idx, &dummy_x, &dummy_y, &q, 0);
|
(int)height, char_idx, &dummy_x, &dummy_y, &q, 0);
|
||||||
@ -29654,6 +29653,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
|
|||||||
/// - [y]: Minor version with non-breaking API and library changes
|
/// - [y]: Minor version with non-breaking API and library changes
|
||||||
/// - [z]: Patch version with no direct changes to the API
|
/// - [z]: Patch version with no direct changes to the API
|
||||||
///
|
///
|
||||||
|
/// - 2022/12/23 (4.10.6) - Fix incorrect glyph index in nk_font_bake()
|
||||||
/// - 2022/12/17 (4.10.5) - Fix nk_font_bake_pack() using TTC font offset incorrectly
|
/// - 2022/12/17 (4.10.5) - Fix nk_font_bake_pack() using TTC font offset incorrectly
|
||||||
/// - 2022/10/24 (4.10.4) - Fix nk_str_{append,insert}_str_utf8 always returning 0
|
/// - 2022/10/24 (4.10.4) - Fix nk_str_{append,insert}_str_utf8 always returning 0
|
||||||
/// - 2022/09/03 (4.10.3) - Renamed the `null` texture variable to `tex_null`
|
/// - 2022/09/03 (4.10.3) - Renamed the `null` texture variable to `tex_null`
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
/// - [y]: Minor version with non-breaking API and library changes
|
/// - [y]: Minor version with non-breaking API and library changes
|
||||||
/// - [z]: Patch version with no direct changes to the API
|
/// - [z]: Patch version with no direct changes to the API
|
||||||
///
|
///
|
||||||
|
/// - 2022/12/23 (4.10.6) - Fix incorrect glyph index in nk_font_bake()
|
||||||
/// - 2022/12/17 (4.10.5) - Fix nk_font_bake_pack() using TTC font offset incorrectly
|
/// - 2022/12/17 (4.10.5) - Fix nk_font_bake_pack() using TTC font offset incorrectly
|
||||||
/// - 2022/10/24 (4.10.4) - Fix nk_str_{append,insert}_str_utf8 always returning 0
|
/// - 2022/10/24 (4.10.4) - Fix nk_str_{append,insert}_str_utf8 always returning 0
|
||||||
/// - 2022/09/03 (4.10.3) - Renamed the `null` texture variable to `tex_null`
|
/// - 2022/09/03 (4.10.3) - Renamed the `null` texture variable to `tex_null`
|
||||||
|
@ -354,7 +354,6 @@ nk_font_bake(struct nk_font_baker *baker, void *image_memory, int width, int hei
|
|||||||
|
|
||||||
/* query glyph bounds from stb_truetype */
|
/* query glyph bounds from stb_truetype */
|
||||||
const stbtt_packedchar *pc = &range->chardata_for_range[char_idx];
|
const stbtt_packedchar *pc = &range->chardata_for_range[char_idx];
|
||||||
if (!pc->x0 && !pc->x1 && !pc->y0 && !pc->y1) continue;
|
|
||||||
codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx);
|
codepoint = (nk_rune)(range->first_unicode_codepoint_in_range + char_idx);
|
||||||
stbtt_GetPackedQuad(range->chardata_for_range, (int)width,
|
stbtt_GetPackedQuad(range->chardata_for_range, (int)width,
|
||||||
(int)height, char_idx, &dummy_x, &dummy_y, &q, 0);
|
(int)height, char_idx, &dummy_x, &dummy_y, &q, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user