a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 diskfont.library
  AvailFonts
  DisposeFontContents
  GetDiskFontCtrl
  NewFontContents
  NewScaledDiskFont
  OpenDiskFont
  SetDiskFontCtrlA
Include
GuruMeditation
Docs » Autodocs » diskfont.library » NewFontContents

NAME

	NewFontContents -- Create a FontContents image for a font. (V34)

SYNOPSIS

	fontContentsHeader = NewFontContents(fontsLock,fontName)
D0 A0 A1
struct FontContentsHeader *NewFontContents( BPTR, char * );

FUNCTION

	This function creates a new array of FontContents entries
that describe all the fonts associated with the fontName,
specifically, all those in the font directory whose name
is that of the font sans the ".font" suffix.

INPUTS

	fontsLock - a DOS lock on the FONTS: directory (or other
directory where the font contents file and associated
font directory resides).
fontName - the font name, with the ".font" suffix, which
is also the name of the font contents file.

RESULT

	fontContentsHeader - a struct FontContentsHeader pointer.
EXCEPTIONS
This command was first made available as of version 34.
D0 is zero if the fontName is does not have a ".font" suffix,
if the fontName is too long, if a DOS error occurred, or if
memory could not be allocated for the fontContentsHeader.

SEE ALSO

DisposeFontContents() to free the structure acquired here.

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anarchy

RBS
TRSI
SCX
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se