pub struct PsOptions {
pub eps: bool,
pub paper: Paper,
pub orientation: PageOrientation,
pub metadata: Metadata,
pub simplify: SimplifySettings,
pub composite_images: bool,
pub fonttype: FontType,
pub afm: bool,
pub usetex: bool,
}Expand description
Settings of a PostScript document.
Fields§
§eps: boolEncapsulated PostScript: no page, sized to the figure.
paper: Paperps.papersize (ignored for EPS).
orientation: PageOrientationsavefig.orientation.
metadata: MetadataTitle, creator and creation date (DSC comments).
simplify: SimplifySettingspath.simplify and path.simplify_threshold.
composite_images: boolimage.composite_image.
fonttype: FontTypeps.fonttype: how TrueType fonts are embedded.
afm: boolps.useafm: text that is not mathtext is drawn in standard
PostScript fonts, measured with their AFM metrics, and no font is
embedded.
usetex: booltext.usetex: texts are tags for LaTeX’s psfrag package, and
PsRenderer::finish makes the figure LaTeX includes
(PsOutput::Psfrag); with it off, texts marked usetex are drawn
as plain text, as matplotlib draws them.
Implementations§
Source§impl PsOptions
impl PsOptions
Sourcepub fn afm_directory(&self) -> Option<AfmDirectory>
pub fn afm_directory(&self) -> Option<AfmDirectory>
The AFM fonts text that is not mathtext is drawn in, and must be
measured with, if any (RendererPS._afm_font_dir when ps.useafm
is set): those of fonts/afm, the 35 standard PostScript fonts.