summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-11 23:11:07 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-11 23:11:07 (EDT)
commitc3118e7340f62236110cf87f32ea7a278ce0b275 (patch)
tree605e6ec61f7c881baf7bdf97de169477bccffcfb /bin
parent60df705d61a2329a195ad3005d30ae263c2cea54 (diff)
parse_bdf_2_1(): Set vertical offset
Also fix a variable name.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bdf2fbcon5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon
index d995d9b..eafe462 100755
--- a/bin/bdf2fbcon
+++ b/bin/bdf2fbcon
@@ -266,11 +266,12 @@ sub parse_bdf_2_1
$font->{'chars'}[$encoding]->{'name'} = $char;
} elsif ($stmt eq 'BBX') {
$char_bbox_w = $argv[0];
- $char_bbox_y = $argv[1];
+ $char_bbox_h = $argv[1];
$char_bbox_x = $argv[2];
$char_bbox_y = $argv[3];
} elsif ($stmt eq 'BITMAP') {
- $y = 0;
+ $y = $font->{'height'} + $font_bbox_y -
+ ($char_bbox_h + $char_bbox_y);
$section = BDF_2_1_SECTION_BITMAP;
}
} elsif ($section == BDF_2_1_SECTION_BITMAP) {