Skip to content

Commit

Permalink
Add font oversample and turn off pixel snap
Browse files Browse the repository at this point in the history
  • Loading branch information
rj45 committed May 15, 2024
1 parent 302f114 commit 4e559fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ static void init(void *user_data) {

struct nk_font_config cfg_latin = nk_font_config(UI_FONT_SIZE);
cfg_latin.range = nk_font_default_glyph_ranges();
cfg_latin.oversample_h = cfg_latin.oversample_v = 2;
cfg_latin.pixel_snap = true;
cfg_latin.oversample_h = cfg_latin.oversample_v = 4;
cfg_latin.pixel_snap = false;

app->font_smp = sg_make_sampler(&(sg_sampler_desc){
.min_filter = SG_FILTER_LINEAR,
Expand Down

0 comments on commit 4e559fc

Please sign in to comment.