Struct style::values::specified::font::FontSynthesis [] [src]

pub struct FontSynthesis {
    pub weight: bool,
    pub style: bool,
}

Whether user agents are allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces

Fields

If a font-weight is requested that the font family does not contain, the user agent may synthesize the requested weight from the weights that do exist in the font family.

If a font-style is requested that the font family does not contain, the user agent may synthesize the requested style from the normal face in the font family.

Methods

impl FontSynthesis
[src]

[src]

Get the default value of font-synthesis

Trait Implementations

impl Clone for FontSynthesis
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FontSynthesis
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for FontSynthesis
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for FontSynthesis
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl ToComputedValue for FontSynthesis
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more

impl Parse for FontSynthesis
[src]

[src]

Parse a value of this type. Read more

impl ToCss for FontSynthesis
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more