[][src]Struct xrdb::FontName

pub struct FontName {
    pub family: String,
    pub style: String,
    pub slant: Slant,
    pub weight: Weight,
    pub size: f64,
    pub pixelsize: f64,
    pub encoding: String,
    pub spacing: Spacing,
    pub foundry: String,
    pub core: bool,
    pub antialias: bool,
    pub xlfd: String,
    pub file: String,
    pub index: i32,
    pub rasterizer: String,
    pub outline: bool,
    pub scalable: bool,
    pub rgba: Rgba,
    pub scale: f64,
    pub render: bool,
    pub minspace: bool,
}

An arbitrary set of additional elements can be appended to the font name, the complete list of possible properties is:

CPP constant	    Name		Type
----------------------------------------------
XFT_FAMILY	        family		String
XFT_STYLE	        style		String
XFT_SLANT	        slant		Int
XFT_WEIGHT	        weight		Int
XFT_SIZE	        size		Double
XFT_PIXEL_SIZE	    pixelsize		Double
XFT_ENCODING	    encoding		String
XFT_SPACING	        spacing		Int
XFT_FOUNDRY	        foundry		String
XFT_CORE	        core		Bool
XFT_ANTIALIAS	    antialias		Bool
XFT_XLFD	        xlfd		String
XFT_FILE	        file		String
XFT_INDEX	        index		Int
XFT_RASTERIZER	    rasterizer		String
XFT_OUTLINE	        outline		Bool
XFT_SCALABLE	    scalable		Bool
XFT_RGBA	        rgba		Int
(Defaults from resources)
XFT_SCALE	        scale		Double
XFT_RENDER	        render		Bool
XFT_MINSPACE	    minspace		Bool
(Specific to FreeType rasterizer)
XFT_CHAR_WIDTH	    charwidth		Int
XFT_CHAR_HEIGHT	    charheight		Int
XFT_MATRIX	        matrix    		XftMatrix

Fields

family: Stringstyle: Stringslant: Slantweight: Weightsize: f64pixelsize: f64encoding: Stringspacing: Spacingfoundry: Stringcore: boolantialias: boolxlfd: Stringfile: Stringindex: i32rasterizer: Stringoutline: boolscalable: boolrgba: Rgbascale: f64render: boolminspace: bool

Trait Implementations

impl Clone for FontName[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FontName[src]

Auto Trait Implementations

impl Send for FontName

impl Sync for FontName

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.