Re: [cc65] TGI bitmap fnts revisited

From: Oliver Schmidt <ol.sc1web.de>
Date: 2011-07-10 13:57:36
Hi Uz,

> Since bitmap fonts usually don't have a common baseline, I would agree to
> ignore it. BGI did it this way.
>
> Please note that the behaviour is different for stroke fonts. For stroke
> fonts, the horizontal coordinate is the baseline of the characters.

I interpret this as staying with the current approach of lower left corner.

>> @Uz: The current implementation of that cursor movement seems to take
>> vertical direction into account but seems to _not_ take text scaling
>> into account.

> Thanks for the hint. I will fix that.

:-)

> I would still prefer a "full" implementation that also does scaling,

I see. However the Apple II will most likely have to live without ;-)

> but
> having bitmap fonts at all is better than nothing.

Hi CBM guys - the C64 320x200 driver still has no bitmap font...

>> [TGI kernel does bitmap font clipping]

> Sounds reasonable.

:-)

>> - Characters not fitting the screen are omitted completely
>>   a) The TGI kernel creates a copy of the substring fitting the screen
>> (and adjusts potentially the coordinate)
>>   b) The TGI kernel creates a single character string for every
>> character fitting the screen and calls into the driver in a loop
>> (leveraging the cursor movement feature)
>
> Since a) needs some unknown amount of memory, b) is probably the way to go.

That's why I came up with the - depending on the driver much slower - b) ;-)

>> 3. What happens to the pixels not being part of the character glyph
>> but being part of the character bounding box? Are they to be left
>> as-is? Or are they to be set to some value - if yes to which?

> BGI feft them alone and this is what I would do, too.

Okay. Then I'll implement it on the Apple II this way. And the Atari
(at least the 'stddrv') does it this way too. So we have at least two
targets behaving similiar :-)

I'll soon submit a new routine to the TGI Demo that does a little
bitmap font text output and that visualizes the
lower-left-corner-origin approach both for horizontal and vertical
text. However for some reson it doesn't do font scaling ;-))

Regards,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jul 10 13:57:52 2011

This archive was generated by hypermail 2.1.8 : 2011-07-10 13:57:55 CEST