mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 01:54:21 +01:00
[rust] Apply review feedback
This commit is contained in:
1 parent
75588f5b2f
commit
92f367ced3
3 files changed
+4
-4
No files matched your search
Generated
+1
-1
@@ -59,7 +59,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "harfruzz"
|
||||
version = "0.0.1"
|
||||
source = "git+https://github.com/harfbuzz/harfruzz#006472176ab87e3a84e799e74e0ac19fbe943dd7"
|
||||
source = "git+https://github.com/harfbuzz/harfruzz?rev=006472176ab87e3a84e799e74e0ac19fbe943dd7#006472176ab87e3a84e799e74e0ac19fbe943dd7"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"bytemuck",
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ edition = "2021"
|
||||
font-types = { version = "0.*", optional = true }
|
||||
read-fonts = { version = "0.*", optional = true }
|
||||
skrifa = { version = "0.*", optional = true }
|
||||
harfruzz = { git = "https://github.com/harfbuzz/harfruzz", optional = true }
|
||||
harfruzz = { git = "https://github.com/harfbuzz/harfruzz", rev = "006472176ab87e3a84e799e74e0ac19fbe943dd7", optional = true }
|
||||
|
||||
[lib]
|
||||
name = "harfbuzz_rust"
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ use harfruzz::{Face, FontRef, ShaperFont};
|
||||
pub struct HBHarfRuzzFaceData<'a> {
|
||||
face_blob: *mut hb_blob_t,
|
||||
font_ref: FontRef<'a>,
|
||||
shaper_font: Box<ShaperFont>,
|
||||
shaper_font: ShaperFont,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
@@ -29,7 +29,7 @@ pub unsafe extern "C" fn _hb_harfruzz_shaper_face_data_create_rs(
|
||||
Ok(f) => f,
|
||||
Err(_) => return null_mut(),
|
||||
};
|
||||
let shaper_font = Box::new(ShaperFont::new(&font_ref));
|
||||
let shaper_font = ShaperFont::new(&font_ref);
|
||||
|
||||
let hr_face_data = Box::new(HBHarfRuzzFaceData {
|
||||
face_blob,
|
||||
|
||||
Reference in new issue
Block a user