Skip to content

Commit

Permalink
fixup! feat(pandagl): calculate baseline position based on Ascender a…
Browse files Browse the repository at this point in the history
…nd BBox
  • Loading branch information
lc-soft committed Feb 10, 2024
1 parent 93f68dc commit bc8115f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/pandagl/src/font/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ int pd_canvas_mix_font_bitmap(pd_canvas_t *graph, pd_pos_t pos,
pd_canvas_t write_slot;
pd_rect_t r_rect, w_rect;

if (pos.x > 0) {
logger_debug("pos.x\n");
}
if (pos.y > 0) {
logger_debug("pos.y\n");
}
if (pos.x > (int)graph->width) {
logger_debug("width\n");
}
if (pos.y > (int)graph->height) {
logger_debug("height\n");
}
if (pos.x > (int)graph->width || pos.y > (int)graph->height) {
return -2;
}
Expand Down

0 comments on commit bc8115f

Please sign in to comment.