more misc changes
It seems applying ceil to cache_glyph_to_atlas.dst_glyph_size does generally improve text clarity...
This commit is contained in:
parent
2f2253f12c
commit
d61bd8f161
@ -402,7 +402,7 @@ cache_glyph_to_atlas :: proc( ctx : ^Context,
|
||||
slot_position, slot_size := atlas_bbox( atlas, region_kind, atlas_index )
|
||||
|
||||
dst_glyph_position := slot_position
|
||||
dst_glyph_size := (bounds_size * entry.size_scale + glyph_padding)
|
||||
dst_glyph_size := ceil(bounds_size * entry.size_scale + glyph_padding)
|
||||
dst_size := (slot_size)
|
||||
screenspace_x_form( & dst_glyph_position, & dst_glyph_size, atlas_size )
|
||||
screenspace_x_form( & slot_position, & dst_size, atlas_size )
|
||||
|
@ -70,7 +70,9 @@ ui_settings_menu_builder :: proc( captures : rawptr = nil ) -> ( should_raise :
|
||||
joined_size := size_range2( vbox_children_bounds )
|
||||
if ! dragged
|
||||
{
|
||||
min_size.y = joined_size.y
|
||||
// TODO(Ed): Figure out what this value is
|
||||
extra_padding :: 3
|
||||
min_size.y = joined_size.y + layout.border_width + extra_padding
|
||||
if min_size.y > size.y {
|
||||
pos.y += (layout.size.min.y - min_size.y) * 0.5
|
||||
layout.pos = pos
|
||||
@ -87,7 +89,7 @@ ui_settings_menu_builder :: proc( captures : rawptr = nil ) -> ( should_raise :
|
||||
ui_parent(vbox)
|
||||
|
||||
Frame_Bar:
|
||||
{
|
||||
{
|
||||
scope(theme_window_bar)
|
||||
frame_bar := ui_hbox(.Left_To_Right, "Settings Menu: Frame Bar", { .Mouse_Clickable })
|
||||
{
|
||||
|
@ -522,9 +522,9 @@ tick_work_frame :: #force_inline proc( host_delta_time_ms : f64 ) -> b32
|
||||
config := & get_state().config
|
||||
debug := & get_state().debug
|
||||
|
||||
debug.draw_ui_box_bounds_points = true
|
||||
debug.draw_ui_box_bounds_points = false
|
||||
debug.draw_ui_padding_bounds = false
|
||||
debug.draw_ui_content_bounds = true
|
||||
debug.draw_ui_content_bounds = false
|
||||
|
||||
// config.engine_refresh_hz = 165
|
||||
|
||||
|
@ -170,6 +170,7 @@ test_whitespace_ast :: proc( default_layout : ^UI_Layout, frame_style_default :
|
||||
text_layout.alignment = { 0.0, 1.0 }
|
||||
text_layout.size.min = { 1600, 14 }
|
||||
text_style := frame_style_default ^
|
||||
// text_style.text_color = Color_Black
|
||||
text_style_combo := to_ui_style_combo(text_style)
|
||||
text_style_combo.default.bg_color = Color_Transparent
|
||||
text_style_combo.disabled.bg_color = Color_Transparent
|
||||
|
Loading…
Reference in New Issue
Block a user