summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-13 08:44:01 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-13 08:44:01 (EDT)
commit26a0741a46dbe1cdef229734e5e84d422f86c45d (patch)
treec1461b36cd1095260f733389f6c99ca27bb9f7b8 /bin
parent2264ed1e9893169738767cc2b711082cd89a102f (diff)
write_fbcon(): Add "_WxH" to id, idx, and name
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bdf2fbcon3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon
index fb145ad..0085b19 100755
--- a/bin/bdf2fbcon
+++ b/bin/bdf2fbcon
@@ -318,6 +318,9 @@ sub write_fbcon
$font->{'name'} = $font->{'idx'};
$font->{'id'} = lc($font->{'id'});
$font->{'id'} =~ s/[^a-z0-9_]/_/g;
+ $font->{'id'} .= '_' . $font->{'width'} . 'x' . $font->{'height'};
+ $font->{'idx'} .= '_' . $font->{'width'} . 'x' . $font->{'height'};
+ $font->{'name'} .= '_' . $font->{'width'} . 'x' . $font->{'height'};
for (@{$font->{'comments'}}) {
printf($output_fh "/* %s */\n", $_);