- Posts: 3333
Tiny font alignment
- vlad_vy
- Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Once I made an all new narrow font too, but there was not much interest in that:
www.deviationtx.com/forum/custom-skins/6...-the-bw-transmitters
Probably it is too difficult to edit the config.ini...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- FDR
- Offline
How did it look like with the original font?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- FDR
- Offline
That's not bad at all.sbstnp wrote: This may look weird with the small UI, I would keep both fonts with different names, just in case (I know hardly anyone uses the condensed display, I personally can't live without it - but then again, I run my own version with some customisations anyway).
Or is it with the original font?
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
We need change "bdf_to_font.pl"
from:
sub align_chars {
my($font) = @_;
my $max_zero = 0;
foreach my $c (sort {$a <=> $b} keys %$font) {
last if ($c > 2000);
$max_zero = $font->{$c}{zero} if($font->{$c}{zero} > $max_zero);
}
#Align to baseline
foreach my $c (keys %$font) {
if($font->{$c}{zero} < $max_zero) {
foreach my $col (@{ $font->{$c}{data} }) {
$col <<= $max_zero - $font->{$c}{zero};
}
$font->{$c}{zero} = $max_zero;
}
}
}
sub align_chars {
my($font) = @_;
my $max_zero = $ascent;
#Align to baseline
foreach my $c (keys %$font) {
if($font->{$c}{zero} < $max_zero) {
foreach my $col (@{ $font->{$c}{data} }) {
$col <<= $max_zero - $font->{$c}{zero};
}
$font->{$c}{zero} = $max_zero;
}
}
}
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Tiny font alignment