Struct style::font_metrics::ServoMetricsProvider
[−]
[src]
pub struct ServoMetricsProvider;
Dummy metrics provider for Servo. Knows nothing about fonts and does not provide any metrics.
Trait Implementations
impl Debug for ServoMetricsProvider
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl FontMetricsProvider for ServoMetricsProvider
[src]
fn create_from(_: &SharedStyleContext) -> Self
[src]
Construct from a shared style context
fn get_size(&self, _font_name: &Atom, _font_family: u8) -> Au
[src]
Get default size of a given language and generic family
fn query(
&self,
_font: &Font,
_font_size: Au,
_wm: WritingMode,
_in_media_query: bool,
_device: &Device
) -> FontMetricsQueryResult
[src]
&self,
_font: &Font,
_font_size: Au,
_wm: WritingMode,
_in_media_query: bool,
_device: &Device
) -> FontMetricsQueryResult
Obtain the metrics for given font family. Read more