Module ep_typespec

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".

Copyright © 2018 Lloyd R. Prentice

Version: 0.01

Authors: Lloyd R. Prentice.

Description

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

Function Index

courier/2Return courier typefaces.
default/1Default type specification.
default_face/0Return default typeface.
default_helvetica/1Default helvetica type specification.
face_map/2Return face map face_map/2 - Given typestyle and tag, return face map.
faces/2Return typefaces.
fonts/0Return all fonts.
fontsize/2Return typefaces.
get_face/3Given type style, style tag and face tag, return typeface.
get_font/3Return erlPress font get_font/2 - Given type style and tag, return font.
get_fontmap/2Return list of faces.
get_specs/2Return typefaces, leading, jusitification, and indentation.
helvetica/2Return helvetica typefaces.
indent/2Return indent.
justify/2Return justification.
leading/2Return leading.
list_faces/2Given typestyle and tag, return associated type faces.
max_linespace/2Return max_linespace for readability max_linespace/2 - Return return maximimum linespace for readability.
times/2Return times typefaces.

Function Details

courier/2

courier(Tag::atom(), FontSize::integer()) -> tuple()

Return courier typefaces

default/1

default(FontSize::integer()) -> tuple()

Default type specification

default_face/0

default_face() -> tuple()

Return default typeface

default_helvetica/1

default_helvetica(FontSize::integer()) -> tuple()

Default helvetica type specification

face_map/2

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/2

faces(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return typefaces

fonts/0

fonts() -> any()

Return all fonts

fontsize/2

fontsize(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return typefaces

get_face/3

get_face(TypeStyle::tuple(), StyleTag::atom(), FaceTag::atom()) -> tuple()

Given type style, style tag and face tag, return typeface

get_font/3

get_font(TypeStyle::tuple(), StyleTag::atom(), FaceTag::atom()) -> atom()

Return erlPress font get_font/2 - Given type style and tag, return font

get_fontmap/2

get_fontmap(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return list of faces

get_specs/2

get_specs(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return typefaces, leading, jusitification, and indentation

helvetica/2

helvetica(Tag::atom(), FontSize::integer()) -> tuple()

Return helvetica typefaces

indent/2

indent(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return indent

justify/2

justify(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return justification

leading/2

leading(TypeStyle::tuple(), Tag::atom()) -> leading()

Return leading

list_faces/2

list_faces(TypeStyle::tuple(), Tag::atom()) -> list()

Given typestyle and tag, return associated type faces

max_linespace/2

max_linespace(TypeStyle::tuple(), Tag::atom()) -> tuple()

Return max_linespace for readability max_linespace/2 - Return return maximimum linespace for readability

times/2

times(Tag::atom(), FontSize::integer()) -> tuple()

Return times typefaces


Generated by EDoc