30 May 2019, 02:58 | #1 |
Registered User
Join Date: Feb 2019
Location: Gothenburg, Sweden
Posts: 27
|
No kerning when using diskfont.library
Regarding the rendering of Compugraphic outline fonts, in case anyone's interested and knows what I'm talking about, one thing i've noticed is that using diskfont.library and the Text() function doesn't make use of any kerning information. You'll have to use the Bullet engine directly, and blit to the raster port yourself.
Perhaps it's logical not to make use of any kerning information when using diskfont.library, since it's also used to produce bitmaps outside of any program. And you don't know beforehand which character pairs will be used in that situation. |
02 June 2019, 20:49 | #2 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,322
|
It does not because it cannot. The Amiga font subsystem design is from the 80's. Characters have a common height, and an individual width, but the graphics.library font system knows nothing about kerning. All the diskfont.library does is that it creates - by means of an external font engine - a bitmap font from an outline/scalable font, so it is all bitmaps in the end. As graphics knows nothing about kerning, and graphics renders the text, diskfont knows nothing about kerning either, and the information is lost between the font engine (typically, bullet.library) and diskfont.
|
07 June 2019, 11:06 | #3 | |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,753
|
That's not entirely true - bitmap fonts have 'kerning', but the values are fixed and not adjusted according to character pairs.
For Compugraphic kerning to work with existing graphics functions, every character pair would have to be passed through to the font engine, then the returned kerning info put into the bitmap font for graphics library to use. This would have to be done one character at a time, which might be a big performance hit and tricky to implement transparently. Better to just create a normal bitmap font for compatibility, and allow applications to use the font engine directly if they need true kerning. Quote:
|
|
07 June 2019, 11:57 | #4 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,322
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compugraphic fonts that lack kerning information | matsp888 | support.Apps | 3 | 30 May 2019 18:20 |
HELP: Opus5, KingCON, SysInfo.library (Sysmon.library) triangle | Michael | support.Apps | 6 | 10 March 2014 14:08 |
Using a diskfont without diskfont.library, just incbin it! | a4k-oerx | Coders. General | 12 | 18 December 2008 13:16 |
HDToolBox > Unable to find diskfont library | W4r3DeV1L | support.Apps | 2 | 06 November 2008 12:10 |
|
|