cairo_svg_unit_t: cairo_svg_unit_t

Description Usage Format Details See Also

Description

#cairo_svg_unit_t is used to describe the units valid for coordinates and lengths in the SVG specification.

Usage

1

Format

An object of class list of length 10.

Details

See also: https://www.w3.org/TR/SVG/coords.html#Units https://www.w3.org/TR/SVG/types.html#DataTypeLength https://www.w3.org/TR/css-values-3/#lengths

Since: 1.16

CAIRO_SVG_UNIT_USER

User unit, a value in the current coordinate system. If used in the root element for the initial coordinate systems it corresponds to pixels. (Since 1.16)

CAIRO_SVG_UNIT_EM

The size of the element's font. (Since 1.16)

CAIRO_SVG_UNIT_EX

The x-height of the element’s font. (Since 1.16)

CAIRO_SVG_UNIT_PX

Pixels (1px = 1/96th of 1in). (Since 1.16)

CAIRO_SVG_UNIT_IN

Inches (1in = 2.54cm = 96px). (Since 1.16)

CAIRO_SVG_UNIT_CM

Centimeters (1cm = 96px/2.54). (Since 1.16)

CAIRO_SVG_UNIT_MM

Millimeters (1mm = 1/10th of 1cm). (Since 1.16)

CAIRO_SVG_UNIT_PT

Points (1pt = 1/72th of 1in). (Since 1.16)

CAIRO_SVG_UNIT_PC

Picas (1pc = 1/6th of 1in). (Since 1.16)

CAIRO_SVG_UNIT_PERCENT

Percent, a value that is some fraction of another reference value. (Since 1.16)

See Also

Other enum: cairo_antialias_t, cairo_content_t, cairo_device_type_t, cairo_extend_t, cairo_fill_rule_t, cairo_filter_t, cairo_font_slant_t, cairo_font_type_t, cairo_font_weight_t, cairo_format_t, cairo_ft_synthesize_t, cairo_hint_metrics_t, cairo_hint_style_t, cairo_int_status_t, cairo_line_cap_t, cairo_line_join_t, cairo_operator_t, cairo_path_data_type_t, cairo_pattern_type_t, cairo_pdf_metadata_t, cairo_pdf_outline_flags_t, cairo_pdf_version_t, cairo_ps_level_t, cairo_region_overlap_t, cairo_status_t, cairo_subpixel_order_t, cairo_surface_observer_mode_t, cairo_surface_type_t, cairo_svg_version_t, cairo_text_cluster_flags_t, enum_find(), enum_lookup()


coolbutuseless/cairocore documentation built on Aug. 31, 2020, 12:43 a.m.