[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2472.0. "Loading Font Files" by CIMAMT::CROMACK () Wed Apr 12 1989 12:01

I'm writing a program in which I need to load in a font
file and convert each character to a bitmap.  Is there
a program or a system call that will do any of the font
loading for me.


	thanks a font load( someone had to say it),

			Dean Cromack
T.RTitleUserPersonal
Name
DateLines
2472.1LoadSeg() in the DOS ManualTLE::RMEYERSRandy MeyersFri Apr 14 1989 13:4713
Re: .0

If you are talking about loading an Amiga font file, use the DOS.LIBRARY
function LoadSeg().  This is the function used to load a executable file
on the Amiga.  It is also function used to by the operating system to
load fonts, keymaps, libraries, and what have you.

The reason for this is simple: one of the functions of a load program
primitive is to fixup any pointer references in the program in light
of where the program was put in memory.  Fonts, keymaps, etc. all have
lots of pointers to be fixed up.  So the Amiga designers store those
files in the same format as an executable file so that the image loaded
into memory has all its internal pointers fixed up.
2472.2 HANNA::CROMACKFri Apr 14 1989 16:047
thanks Randy, that's exactly what I want.

By the way I will be leaving DEC today.  Thanks to all you noters
for the help you have provided!

	Dean Cromack