Skip to content

Commit

Permalink
ui.baseline-alignment: Don't divide f by 2. Also, can't put 0 or
Browse files Browse the repository at this point in the history
…after

``max-cap-height`` because it breaks something else.
  • Loading branch information
erg committed Aug 19, 2015
1 parent 3649dd2 commit f6c1d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/ui/baseline-alignment/baseline-alignment.factor
Expand Up @@ -61,7 +61,7 @@ TUPLE: gadget-metrics height ascent descent cap-height ;

:: combine-metrics ( graphics-height ascent descent cap-height -- ascent' descent' )
ascent [
cap-height 2 / :> mid-line
cap-height 0 or 2 / :> mid-line
graphics-height 2 /
[ ascent mid-line - max mid-line + floor >integer ]
[ descent mid-line + max mid-line - ceiling >integer ] bi
Expand Down

0 comments on commit f6c1d00

Please sign in to comment.