Copyright © 2018 Lloyd R. Prentice
Version: 0.01
Authors: Lloyd R. Prentice.
License: MIT File: ep_typespec.erl Description: Type specification functions Note: erlguten refers to "tagmaps." Since they are not maps in the contemporary Erlang sense, we've changed the term "tagmap" to "typespec"
A "typestyle" is an atom that names a set of type specifications. See: ep_typestyle:report/1| courier/2 | Return courier typefaces. |
| default/1 | Default type specification. |
| default_face/0 | Return default typeface. |
| default_helvetica/1 | Default helvetica type specification. |
| face_map/2 | Return face map face_map/2 - Given typestyle and tag, return face map. |
| faces/2 | Return typefaces. |
| fonts/0 | Return all fonts. |
| fontsize/2 | Return typefaces. |
| get_face/3 | Given type style, style tag and face tag, return typeface. |
| get_font/3 | Return erlPress font get_font/2 - Given type style and tag, return font. |
| get_fontmap/2 | Return list of faces. |
| get_specs/2 | Return typefaces, leading, jusitification, and indentation. |
| helvetica/2 | Return helvetica typefaces. |
| indent/2 | Return indent. |
| justify/2 | Return justification. |
| leading/2 | Return leading. |
| list_faces/2 | Given typestyle and tag, return associated type faces. |
| max_linespace/2 | Return max_linespace for readability max_linespace/2 - Return return maximimum linespace for readability. |
| times/2 | Return times typefaces. |
courier(Tag::atom(), FontSize::integer()) -> tuple()
Return courier typefaces
default(FontSize::integer()) -> tuple()
Default type specification
default_face() -> tuple()
Return default typeface
default_helvetica(FontSize::integer()) -> tuple()
Default helvetica type specification
face_map(TypeSyle::tuple(), Tag::atom()) -> map()
Return face map face_map/2 - Given typestyle and tag, return face map
EXAMPLE: TypeStyle = justify_report Tag = p
RETURNS #{b => {face,eg_font_11,12,0,{0,0,0},true}, code => {face,eg_font_3,12,0,{0,0,0},true}, default => {face,eg_font_13,12,0,{0,0,0},true}, em => {face,eg_font_10,12,0,{0,0,0},true}, p => {face,eg_font_13,12,0,{0,0,0},true}}faces(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return typefaces
fonts() -> any()
Return all fonts
fontsize(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return typefaces
get_face(TypeStyle::tuple(), StyleTag::atom(), FaceTag::atom()) -> tuple()
Given type style, style tag and face tag, return typeface
get_font(TypeStyle::tuple(), StyleTag::atom(), FaceTag::atom()) -> atom()
Return erlPress font get_font/2 - Given type style and tag, return font
get_fontmap(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return list of faces
get_specs(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return typefaces, leading, jusitification, and indentation
helvetica(Tag::atom(), FontSize::integer()) -> tuple()
Return helvetica typefaces
indent(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return indent
justify(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return justification
leading(TypeStyle::tuple(), Tag::atom()) -> leading()
Return leading
list_faces(TypeStyle::tuple(), Tag::atom()) -> list()
Given typestyle and tag, return associated type faces
max_linespace(TypeStyle::tuple(), Tag::atom()) -> tuple()
Return max_linespace for readability max_linespace/2 - Return return maximimum linespace for readability
times(Tag::atom(), FontSize::integer()) -> tuple()
Return times typefaces
Generated by EDoc