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

NAME

	SetDiskFontCtrl -- Adjust disk font global settings (V45)

SYNOPSIS

	SetDiskFontCtrlA( tags );
A0
void SetDiskFontCtrlA( struct TagItem * );
void SetDiskFontCtrl( Tag, ... );

FUNCTION

	SetDiskFontCtrl adjusts the global settings passed in
in the form of a tag list and installs them into the
the diskfont internal database. This includes the
base DPI X and Y values, the cache enable flag and the
AvailFonts font sorting order.

INPUTS

	tags -  a tag list defining the global settings that are
to be adjusted.
The following tag values are currently supported:
(see diskfont/diskfonttag.h)
Font generator DPI settings:
DFCTRL_XDPI
DFCTRL_YDPI X and Y dpi device resolution
DFCTRL_XDOTP
DFCTRL_YDOTP X and Y dpi dot sizes.
DFCTRL_SYMSET default symbol set (unused)
DFCTRL_CACHE AvailFonts cache enable (BOOL)
DFCTRL_SORTMODE AvailFonts font sorting (LONG)
currently defined sort orders are:
DFCTRL_SORT_OFF don't sort
DFCTRL_SORT_ASC localized ascending
DFCTRL_SORT_DES localized descending

RESULT

EXAMPLE

	SetDiskFontCtrl(DFCTRL_CACHE,TRUE,TAG_DONE);
/* enable the AvailFonts cache. */

NOTES

	The SetDiskFontCtrlA() function is the assembly language
interface which takes the tag list pointer in A0.
SetDiskFontCtrl() is the stack based wrapper for
convenient C language calls.
This call is not semaphore protected. This means that
several calls to this function and GetDiskFontCtrl()
might cause inconsistent results. The function will not
fail or crash, but the result might be near to useless
in a multitasking system.
This function should never be called by the average
user. Its sole purpose is to allow the font
preferences editor to adjust the diskfont internal
data in a user friendly way. It should not be called
for other purposes, especially, applications *MUST NOT*
call this to enable or disable the cache setting. This
should be left to the user by selecting the preferences.

BUGS

SEE ALSO

<diskfont/diskfonttag.h>, <utility/tagitem.h>

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:

Andromeda

AOA
ANA
FLT
DJ

Comments:

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