This is the zpb-ttf Reference Manual, version 1.0.3, generated automatically by Declt version 3.0 "Montgomery Scott" on Thu Mar 11 15:21:56 2021 GMT+0.
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
The main system appears first, followed by any subsystem dependency.
• The zpb-ttf system |
Zach Beane <xach@xach.com>
BSD
Access TrueType font metrics and outlines from Common Lisp
1.0.3
zpb-ttf.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
Next: The zpb-ttf/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
zpb-ttf.asd
zpb-ttf (system)
Next: The zpb-ttf/util․lisp file, Previous: The zpb-ttf․asd file, Up: Lisp files [Contents][Index]
Next: The zpb-ttf/conditions․lisp file, Previous: The zpb-ttf/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
zpb-ttf (system)
util.lisp
Next: The zpb-ttf/bounding-box․lisp file, Previous: The zpb-ttf/util․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
zpb-ttf (system)
conditions.lisp
Next: The zpb-ttf/font-loader․lisp file, Previous: The zpb-ttf/conditions․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
zpb-ttf (system)
bounding-box.lisp
Next: The zpb-ttf/maxp․lisp file, Previous: The zpb-ttf/bounding-box․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
font-loader.lisp
Next: The zpb-ttf/head․lisp file, Previous: The zpb-ttf/font-loader․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
maxp.lisp
load-maxp-info (method)
Next: The zpb-ttf/kern․lisp file, Previous: The zpb-ttf/maxp․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
head.lisp
load-head-info (method)
Next: The zpb-ttf/loca․lisp file, Previous: The zpb-ttf/head․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
kern.lisp
all-kerning-pairs (method)
Next: The zpb-ttf/name․lisp file, Previous: The zpb-ttf/kern․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
loca.lisp
Next: The zpb-ttf/cmap․lisp file, Previous: The zpb-ttf/loca․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
name.lisp
Next: The zpb-ttf/post․lisp file, Previous: The zpb-ttf/name․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
cmap.lisp
Next: The zpb-ttf/hhea․lisp file, Previous: The zpb-ttf/cmap․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
post.lisp
Next: The zpb-ttf/hmtx․lisp file, Previous: The zpb-ttf/post․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
hhea.lisp
Next: The zpb-ttf/glyf․lisp file, Previous: The zpb-ttf/hhea․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
hmtx.lisp
load-hmtx-info (method)
Next: The zpb-ttf/glyph․lisp file, Previous: The zpb-ttf/hmtx․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
glyf.lisp
Next: The zpb-ttf/font-loader-interface․lisp file, Previous: The zpb-ttf/glyf․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
glyph.lisp
Previous: The zpb-ttf/glyph․lisp file, Up: Lisp files [Contents][Index]
zpb-ttf (system)
font-loader-interface.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The zpb-ttf-system package | ||
• The zpb-ttf package |
Next: The zpb-ttf package, Previous: Packages, Up: Packages [Contents][Index]
zpb-ttf.asd
Previous: The zpb-ttf-system package, Up: Packages [Contents][Index]
package.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros | ||
• Exported functions | ||
• Exported generic functions |
Next: Exported functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
A contour is made up of segments. A segment may be a straight line or a curve. For each segment, bind the P0 and P2 variables to the start and end points of the segment. If the segment is a curve, set P1 to the control point of the curve, otherwise set P1 to NIL.
glyph.lisp (file)
font-loader-interface.lisp (file)
Next: Exported generic functions, Previous: Exported macros, Up: Exported definitions [Contents][Index]
font-loader-interface.lisp (file)
font-loader-interface.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
glyph.lisp (file)
(setf advance-width) (generic function)
advance-width (generic function)
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
bounding-box.lisp (file)
(setf bounding-box) (generic function)
glyph.lisp (file)
automatically generated reader method
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
bounding-box (generic function)
automatically generated writer method
glyph.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
glyph.lisp (file)
automatically generated writer method
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
glyph.lisp (file)
glyph.lisp (file)
glyph.lisp (file)
automatically generated reader method
glyph.lisp (file)
automatically generated writer method
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
Find the glyph object for CHARACTER in FONT-LOADER
and return it. If CHARACTER is an integer, treat it as a Unicode code
point. If CHARACTER is a Lisp character, treat its char-code as a
Unicode code point.
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
The index of this glyph within the font file, used
to look up information in various structures in the truetype file.
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
Return the GLYPH object located at glyph index
INDEX in FONT-LOADER, or NIL if no glyph is defined for that
index. Despite the name, NOT the inverse of GLYPH-INDEX.
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
glyph.lisp (file)
(setf left-side-bearing) (generic function)
left-side-bearing (generic function)
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
name.lisp (file)
glyph.lisp (file)
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
name.lisp (file)
(setf value) (generic function)
bounding-box.lisp (file)
bounding-box.lisp (file)
bounding-box.lisp (file)
bounding-box.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal constants | ||
• Internal special variables | ||
• Internal functions | ||
• Internal generic functions | ||
• Internal conditions | ||
• Internal classes | ||
• Internal types |
Next: Internal special variables, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Next: Internal functions, Previous: Internal constants, Up: Internal definitions [Contents][Index]
Next: Internal generic functions, Previous: Internal special variables, Up: Internal definitions [Contents][Index]
Move the file position of STREAM ahead by N bytes.
font-loader-interface.lisp (file)
Some TrueType data vectors are truncated, and any references beyond the end of the vector should be treated as a reference to the last element in the vector.
util.lisp (file)
(setf bounded-aref) (function)
util.lisp (file)
bounded-aref (function)
conditions.lisp (file)
Return a hash table keyed on a UINT32 key that represents the glyph index in the left and right halves with a value of the kerning distance between the pair.
Load a Unicode character map of type 4 from STREAM starting at the current offset.
Given the elements of the transformation matrix specified by A, B,
C, D, E, and F, return a function of two arguments that returns the
arguments transformed as multiple values.
Ref: http://developer.apple.com/fonts/TTRefMan/RM06/Chap6glyf.html
Convert the 32-bit NUMBER to a string of four characters based on the CODE-CHAR of each octet in the number.
font-loader.lisp (file)
font-loader-interface.lisp (file)
font-loader-interface.lisp (file)
Returns, if available, the interpretation of the PostScript name NAME as a Unicode code point specifier. Ref: http://partners.adobe.com/public/developer/opentype/index_glyph.html
Read the contours at glyph index INDEX, discarding bounding box information.
Read a Pascal-style length-prefixed string.
With the stream positioned immediately after the glyph bounding box, read the contours data from STREAM and return it as a vector.
Convert the four-character string TAG to a 32-bit number based on the CHAR-CODE of each character.
font-loader.lisp (file)
Call FN with the X and Y coordinates of each point of each contour in the vector CONTOURS. FN should return two values, which are used to update the X and Y values of each point.
Next: Internal conditions, Previous: Internal functions, Up: Internal definitions [Contents][Index]
conditions.lisp (file)
conditions.lisp (file)
conditions.lisp (file)
conditions.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
Return the index of the Unicode CODE-POINT in FONT-LOADER, if present, otherwise NIL.
glyph.lisp (file)
conditions.lisp (file)
conditions.lisp (file)
conditions.lisp (file)
Return the code-point for a given glyph index.
The font-loader from which this glyph originates.
glyph.lisp (file)
automatically generated reader method
name.lisp (file)
automatically generated writer method
name.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
glyph.lisp (file)
The stream from which things are loaded.
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
glyph.lisp (file)
(setf location) (generic function)
conditions.lisp (file)
location (generic function)
conditions.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
name.lisp (file)
(setf octets) (generic function)
The octet offset within the TrueType file stream
of the entry’s data. *Not* the same as the offset in the NameRecord
structure, which is relative to the start of the string data for the
table.
name.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
automatically generated writer method
font-loader.lisp (file)
Move FONT-LOADER’s input stream to the start of TABLE.
font-loader.lisp (file)
Move FONT-LOADER’s input stream to the start of the table named by TAG.
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
conditions.lisp (file)
automatically generated reader method
font-loader.lisp (file)
font-loader.lisp (file)
font-loader.lisp (file)
Return the byte position in the font-loader’s stream for the table named by TAG.
font-loader.lisp (file)
font-loader.lisp (file)
automatically generated reader method
font-loader.lisp (file)
Next: Internal classes, Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
conditions.lisp (file)
regrettable-hex-value (condition)
:description
(quote "bad magic")
conditions.lisp (file)
regrettable-value (condition)
:size
(quote 8)
size (generic function)
(setf size) (generic function)
:actual-value
%actual-value (generic function)
:expected-values
%expected-values (generic function)
conditions.lisp (file)
condition (condition)
:actual-value
actual-value (generic function)
(setf actual-value) (generic function)
:expected-values
expected-values (generic function)
(setf expected-values) (generic function)
:description
(quote nil)
description (generic function)
(setf description) (generic function)
:location
(quote nil)
location (generic function)
(setf location) (generic function)
conditions.lisp (file)
regrettable-hex-value (condition)
:description
(quote "unsupported format")
conditions.lisp (file)
regrettable-value (condition)
:description
(quote "unsupported")
conditions.lisp (file)
regrettable-hex-value (condition)
:description
(quote "unsupported version")
Next: Internal types, Previous: Internal conditions, Up: Internal definitions [Contents][Index]
glyf.lisp (file)
standard-object (class)
:on-curve-p
on-curve-p (generic function)
font-loader.lisp (file)
standard-object (class)
(make-hash-table)
tables (generic function)
The stream from which things are loaded.
:input-stream
input-stream (generic function)
(setf input-stream) (generic function)
:table-count
table-count (generic function)
units/em (generic function)
(setf units/em) (generic function)
bounding-box (generic function)
(setf bounding-box) (generic function)
loca-offset-format (generic function)
(setf loca-offset-format) (generic function)
glyph-locations (generic function)
(setf glyph-locations) (generic function)
character-map (generic function)
(setf character-map) (generic function)
inverse-character-map (generic function)
(setf inverse-character-map) (generic function)
glyph-count (generic function)
(setf glyph-count) (generic function)
ascender (generic function)
(setf ascender) (generic function)
descender (generic function)
(setf descender) (generic function)
line-gap (generic function)
(setf line-gap) (generic function)
advance-widths (generic function)
(setf advance-widths) (generic function)
left-side-bearings (generic function)
(setf left-side-bearings) (generic function)
(make-hash-table)
kerning-table (generic function)
(setf kerning-table) (generic function)
name-entries (generic function)
(setf name-entries) (generic function)
0
italic-angle (generic function)
(setf italic-angle) (generic function)
fixed-pitch-p (generic function)
(setf fixed-pitch-p) (generic function)
0
underline-position (generic function)
(setf underline-position) (generic function)
0
underline-thickness (generic function)
(setf underline-thickness) (generic function)
postscript-glyph-names (generic function)
(setf postscript-glyph-names) (generic function)
glyph-cache (generic function)
(setf glyph-cache) (generic function)
:collection-font-cont
collection-font-count (generic function)
:collection-font-index
collection-font-index (generic function)
glyph.lisp (file)
standard-object (class)
The font-loader from which this glyph originates.
:font-loader
font-loader (generic function)
The index of this glyph within the font file, used
to look up information in various structures in the truetype file.
:font-index
font-index (generic function)
(setf font-index) (generic function)
:code-point
code-point (generic function)
(setf code-point) (generic function)
:contours
contours (generic function)
(setf contours) (generic function)
:bounding-box
bounding-box (generic function)
(setf bounding-box) (generic function)
name.lisp (file)
standard-object (class)
:font-loader
font-loader (generic function)
(setf font-loader) (generic function)
:platform-id
platform-id (generic function)
(setf platform-id) (generic function)
:encoding-id
encoding-id (generic function)
(setf encoding-id) (generic function)
:language-id
language-id (generic function)
(setf language-id) (generic function)
:name-id
name-id (generic function)
(setf name-id) (generic function)
The octet offset within the TrueType file stream
of the entry’s data. *Not* the same as the offset in the NameRecord
structure, which is relative to the start of the string data for the
table.
:offset
offset (generic function)
(setf offset) (generic function)
:entry-length
entry-length (generic function)
(setf entry-length) (generic function)
%value (generic function)
(setf value) (generic function)
%octets (generic function)
(setf octets) (generic function)
font-loader.lisp (file)
standard-object (class)
:name
name (generic function)
:offset
offset (generic function)
:size
size (generic function)
cmap.lisp (file)
standard-object (class)
:segment-count
segment-count (generic function)
:end-codes
end-codes (generic function)
:start-codes
start-codes (generic function)
:id-deltas
id-deltas (generic function)
:id-range-offsets
id-range-offsets (generic function)
:glyph-indexes
glyph-indexes (generic function)
(setf glyph-indexes) (generic function)
Previous: Internal classes, Up: Internal definitions [Contents][Index]
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L Z |
---|
Jump to: | F L Z |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | %
(
A B C D E F G H I K L M N O P R S T U V W X Y |
---|
Jump to: | %
(
A B C D E F G H I K L M N O P R S T U V W X Y |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | *
+
A B C D E F G I K L N O P S T U V X Y |
---|
Jump to: | *
+
A B C D E F G I K L N O P S T U V X Y |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | B C F G N P R S T U Z |
---|
Jump to: | B C F G N P R S T U Z |
---|