mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Fix spelling mistakes in comments.
This commit is contained in:
parent
9f8dda7abc
commit
c254d195ad
24 changed files with 42 additions and 42 deletions
|
@ -30,7 +30,7 @@ impl FontFamily {
|
|||
}
|
||||
}
|
||||
|
||||
/// Find a font in this family that matches a given desriptor.
|
||||
/// Find a font in this family that matches a given descriptor.
|
||||
fn find_font_for_style<'a>(&'a mut self, desc: &FontTemplateDescriptor, fctx: &FontContextHandle)
|
||||
-> Option<Arc<FontTemplateData>> {
|
||||
// TODO(Issue #189): optimize lookup for
|
||||
|
|
|
@ -213,11 +213,11 @@ impl FontHandleMethods for FontHandle {
|
|||
let max_advance = self.font_units_to_au(face.max_advance_width as f64);
|
||||
|
||||
// 'leading' is supposed to be the vertical distance between two baselines,
|
||||
// reflected by the height attibute in freetype. On OS X (w/ CTFont),
|
||||
// reflected by the height attribute in freetype. On OS X (w/ CTFont),
|
||||
// leading represents the distance between the bottom of a line descent to
|
||||
// the top of the next line's ascent or: (line_height - ascent - descent),
|
||||
// see http://stackoverflow.com/a/5635981 for CTFont implementation.
|
||||
// Convert using a formular similar to what CTFont returns for consistency.
|
||||
// Convert using a formula similar to what CTFont returns for consistency.
|
||||
let height = self.font_units_to_au(face.height as f64);
|
||||
let leading = height - (ascent + descent);
|
||||
|
||||
|
|
|
@ -387,7 +387,7 @@ impl<'a> DetailedGlyphStore {
|
|||
return;
|
||||
}
|
||||
|
||||
// Sorting a unique vector is surprisingly hard. The follwing
|
||||
// Sorting a unique vector is surprisingly hard. The following
|
||||
// code is a good argument for using DVecs, but they require
|
||||
// immutable locations thus don't play well with freezing.
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ impl Drop for Shaper {
|
|||
impl Shaper {
|
||||
pub fn new(font: &mut Font) -> Shaper {
|
||||
unsafe {
|
||||
// Indirection for Rust Issue #6248, dynamic freeze scope artifically extended
|
||||
// Indirection for Rust Issue #6248, dynamic freeze scope artificially extended
|
||||
let font_ptr = font as *mut Font;
|
||||
let hb_face: *mut hb_face_t = hb_face_create_for_tables(get_font_table_func,
|
||||
font_ptr as *mut c_void,
|
||||
|
@ -282,7 +282,7 @@ impl Shaper {
|
|||
let mut y_pos = Au(0);
|
||||
|
||||
// main loop over each glyph. each iteration usually processes 1 glyph and 1+ chars.
|
||||
// in cases with complex glyph-character assocations, 2+ glyphs and 1+ chars can be
|
||||
// in cases with complex glyph-character associations, 2+ glyphs and 1+ chars can be
|
||||
// processed.
|
||||
while glyph_span.begin() < glyph_count {
|
||||
// start by looking at just one glyph.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue