mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Format remaining files
This commit is contained in:
parent
bf47f90da6
commit
cb07debcb6
252 changed files with 5944 additions and 3744 deletions
|
@ -236,8 +236,7 @@ impl FontHandleMethods for FontHandle {
|
|||
let count: CFIndex = 1;
|
||||
|
||||
let result = unsafe {
|
||||
self
|
||||
.ctfont
|
||||
self.ctfont
|
||||
.get_glyphs_for_characters(&characters[0], &mut glyphs[0], count)
|
||||
};
|
||||
|
||||
|
|
|
@ -51,7 +51,8 @@ impl fmt::Debug for FontTemplateData {
|
|||
.font_data
|
||||
.as_ref()
|
||||
.map(|bytes| format!("[{} bytes]", bytes.len())),
|
||||
).finish()
|
||||
)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -111,7 +112,8 @@ impl FontTemplateData {
|
|||
.expect("No URL for Core Text font!")
|
||||
.get_string()
|
||||
.to_string(),
|
||||
).expect("Couldn't parse Core Text font URL!")
|
||||
)
|
||||
.expect("Couldn't parse Core Text font URL!")
|
||||
.as_url()
|
||||
.to_file_path()
|
||||
.expect("Core Text font didn't name a path!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue