Next: , Previous: , Up: Exported definitions   [Contents][Index]


6.1.2 Functions

Function: configuration KEY

Return KEY’s value in the current TFM configuration.

Package

net.didierverna.tfm.setup

Source

setup.lisp (file)

Function: configure KEY VALUE

Set KEY to VALUE in the current TFM configuration.

Package

net.didierverna.tfm.setup

Source

setup.lisp (file)

Function: extensiblep CHARACTER

Return T if CHARACTER has an extension recipe.

Package

net.didierverna.tfm

Source

character.lisp (file)

Function: freeze FONT

Freeze FONT.
Freezing a font means that all dimensions normally expressed in design size units are multiplied by it, so as to lead values in TeX point units.
If FONT is already frozen, this function does nothing and returns NIL. Otherwise, it returns T.

Package

net.didierverna.tfm

Source

font.lisp (file)

Function: get-character CODE FONT

Return FONT’s CODE character, or NIL.

Package

net.didierverna.tfm

Source

font.lisp (file)

Function: kerning CHARACTER1 CHARACTER2

Return kerning for CHARACTER1 and CHARACTER2, or NIL.
If CHARACTER1 and CHARACTER2 don’t belong to the same font, signal a DIFFERENT-FONTS error.

Package

net.didierverna.tfm

Source

font.lisp (file)

Writer

(setf kerning) (function)

Function: (setf kerning) KERNING CHARACTER1 CHARACTER2

Set KERNING for CHARACTER1 and CHARACTER2.

Package

net.didierverna.tfm

Source

font.lisp (file)

Reader

kerning (function)

Function: ligature CHARACTER1 CHARACTER2

Return ligature for CHARACTER1 and CHARACTER2, or NIL.
If CHARACTER1 and CHARACTER2 don’t belong to the same font, signal a DIFFERENT-FONTS error.

Package

net.didierverna.tfm

Source

font.lisp (file)

Writer

(setf ligature) (function)

Function: (setf ligature) LIGATURE CHARACTER1 CHARACTER2

Set LIGATURE for CHARACTER1 and CHARACTER2.

Package

net.didierverna.tfm

Source

font.lisp (file)

Reader

ligature (function)

Function: load-font FILE &rest ARGUMENTS &key DESIGN-SIZE FREEZE

Load FILE into a new font, and return it.
- If provided, DESIGN-SIZE overrides the font’s original value. It must be a real greater or equal to 1.
- When FREEZE (NIL by default), freeze the font immediately after creation. See the eponymous function for more information.

Only actual TFM data is currently supported. If OFM or JFM data is detected, this function signals an EXTENDED-TFM warning and returns NIL.

While loading TFM data, any signalled condition is restartable with CANCEL-LOADING, in which case this function simply returns NIL.

Package

net.didierverna.tfm

Source

file.lisp (file)

Function: nickname-package &optional NICKNAME

Add NICKNAME (:TFM by default) to the :NET.DIDIERVERNA.TFM package.

Package

net.didierverna.tfm

Source

meta.lisp (file)

Function: unfreeze FONT

Unfreeze FONT.
Unfreezing means performing the inverse of what FREEZE does.
If FONT is not frozen, this function does nothing and returns NIL. Otherwise, it returns T.

Package

net.didierverna.tfm

Source

font.lisp (file)

Function: version &optional TYPE

Return the current version of TFM.
TYPE can be one of :number, :short or :long.

A version number is computed as major*10000 + minor*100 + patchlevel, leaving two digits for each level. Alpha, beta and rc status are ignored in version numbers.

A short version is something like 1.3{a,b,rc}4, or 1.3.4 for patchlevel. Alpha, beta or rc levels start at 1. Patchlevels start at 0 but are ignored in the output, so that 1.3.0 appears as just 1.3.

A long version is something like
1.3 {alpha,beta,release candidate,patchlevel} 4 "Artificial Uncial".
As for the short version, a patchlevel of 0 is ignored in the output.

Package

net.didierverna.tfm.setup

Source

setup.lisp (file)


Next: , Previous: , Up: Exported definitions   [Contents][Index]