Module Mlpost__Fonts
type type1
= private
{
glyphs_tag : int;
glyphs_ft : Mlpost__.Mlpost_ft.t;
glyphs_enc : int -> int;
slant : float option;
extend : float option;
glyphs_ratio_cm : float;
}
type vf
= private
{
vf_design_size : float;
vf_font_map : Mlpost__.Dvi_util.font_def Mlpost__.Dvi_util.Int32Map.t;
vf_chars : Mlpost__.Dvi.command list Mlpost__.Dvi_util.Int32H.t;
}
type glyphs
=
|
Type1 of type1
|
VirtualFont of vf
type t
the type of a loaded font
val load_font : Mlpost__.Dvi_util.font_def -> float -> t
load_font def f
loads fontdef
scaled byf
val metric : t -> Mlpost__.Tfm.t
Obtain the font metric
val tex_name : t -> string
get the name of the font as used by TeX
val ratio_cm : t -> float
The font ratio, in cm
val glyphs : t -> glyphs
val char_width : t -> int -> float
val char_height : t -> int -> float
val char_depth : t -> int -> float
get information about the
i
th char of the font
val char_dims : t -> int -> float * float * float
width, height, depth of the
i
th char
val scale : t -> float -> float
scale t f
scale the given floatf
byratio_cm t
val design_size : t -> float
the design size of the font