mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[fontations] rustfmt
This commit is contained in:
parent
bd05b260af
commit
c1ed463195
1 changed files with 3 additions and 1 deletions
|
@ -383,7 +383,9 @@ extern "C" fn _hb_fontations_draw_glyph(
|
|||
let slant = unsafe { hb_font_get_synthetic_slant(font) };
|
||||
let mut x_scale: i32 = 0;
|
||||
let mut y_scale: i32 = 0;
|
||||
unsafe { hb_font_get_scale(font, &mut x_scale, &mut y_scale); }
|
||||
unsafe {
|
||||
hb_font_get_scale(font, &mut x_scale, &mut y_scale);
|
||||
}
|
||||
let slant = if y_scale != 0 {
|
||||
slant as f32 * x_scale as f32 / y_scale as f32
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue