English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 30 May 2019, 02:58   #1
matsp888
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.
matsp888 is offline  
Old 02 June 2019, 20:49   #2
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,214
Quote:
Originally Posted by matsp888 View Post
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.
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.
Thomas Richter is offline  
Old 07 June 2019, 11:06   #3
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,543
Quote:
Originally Posted by Thomas Richter View Post
graphics knows nothing about kerning
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:
Originally Posted by matsp888
You'll have to use the Bullet engine directly,
I actually had trouble finding out how to do this! Eventually found the information and some sample code on the Developer CD V1.1 in Amiga Mail Vol2 section V-23 "Using Compugraphic Typefaces with Bullet" (had to use the PC because I don't have a CDROM drive on any of my current Amigas...).
Bruce Abbott is offline  
Old 07 June 2019, 11:57   #4
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,214
Quote:
Originally Posted by Bruce Abbott View Post
That's not entirely true - bitmap fonts have 'kerning', but the values are fixed and not adjusted according to character pairs.
That is what one calls "no kerning".
Thomas Richter is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07602 seconds with 15 queries