render doc nows shows the lettter...
This commit is contained in:
		| @@ -484,7 +484,7 @@ cache_glyph :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph, scale, | ||||
| 	{ | ||||
| 		case .Move: | ||||
| 			if path.num > 0 { | ||||
| 				draw_filled_path( & ctx.draw_list, outside, array_to_slice(path), scale, translate ) | ||||
| 				draw_filled_path( & ctx.draw_list, outside, array_to_slice(path), scale, translate, ctx.debug_print_verbose ) | ||||
| 			} | ||||
| 			clear(path) | ||||
| 			fallthrough | ||||
| @@ -523,7 +523,7 @@ cache_glyph :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph, scale, | ||||
| 			assert(false, "Unknown edge type or invalid") | ||||
| 	} | ||||
| 	if path.num > 0 { | ||||
| 		draw_filled_path( & ctx.draw_list, outside, array_to_slice(path), scale, translate ) | ||||
| 		draw_filled_path( & ctx.draw_list, outside, array_to_slice(path), scale, translate, ctx.debug_print_verbose ) | ||||
| 	} | ||||
|  | ||||
| 	// Note(Original Author): Apend the draw call | ||||
| @@ -533,7 +533,7 @@ cache_glyph :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph, scale, | ||||
| 	} | ||||
|  | ||||
| 	parser_free_shape( & entry.parser_info, shape ) | ||||
| 	return false | ||||
| 	return true | ||||
| } | ||||
|  | ||||
| cache_glyph_to_atlas :: proc( ctx : ^Context, font : FontID, glyph_index : Glyph ) | ||||
|   | ||||
| @@ -176,6 +176,7 @@ decide_codepoint_region :: proc( ctx : ^Context, entry : ^Entry, glyph_index : G | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	over_sample = ctx.atlas.over_sample | ||||
| 	assert(region != nil) | ||||
| 	return | ||||
| } | ||||
|   | ||||
| @@ -233,9 +233,9 @@ draw_filled_path :: proc( draw_list : ^DrawList, outside_point : Vec2, path : [] | ||||
| { | ||||
| 	if debug_print_verbose | ||||
| 	{ | ||||
| 		log("outline_path: \n") | ||||
| 		log("outline_path:") | ||||
| 		for point in path { | ||||
| 			logf("    %.2f %.2f\n", point.x * scale ) | ||||
| 			logf(" point: %v", point * scale + translate ) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user