mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Qualify libstyle enums.
This commit is contained in:
parent
9068e62f2a
commit
d759b07299
5 changed files with 38 additions and 38 deletions
|
@ -194,8 +194,8 @@ impl Font {
|
|||
|
||||
pub fn glyph_index(&self, codepoint: char) -> Option<GlyphId> {
|
||||
let codepoint = match self.variant {
|
||||
font_variant::small_caps => codepoint.to_uppercase(),
|
||||
font_variant::normal => codepoint,
|
||||
font_variant::T::small_caps => codepoint.to_uppercase(),
|
||||
font_variant::T::normal => codepoint,
|
||||
};
|
||||
self.handle.glyph_index(codepoint)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue