fontconfig: add bindings
This commit is contained in:
parent
94816aec78
commit
e01b385c89
5 changed files with 167 additions and 0 deletions
|
|
@ -15,6 +15,9 @@ mod libinput;
|
|||
#[path = "../src/pango/consts.rs"]
|
||||
mod pango;
|
||||
|
||||
#[path = "../src/fontconfig/consts.rs"]
|
||||
mod fontconfig;
|
||||
|
||||
fn get_target() -> repc::Target {
|
||||
let rustc_target = env::var("TARGET").unwrap();
|
||||
repc::TARGET_MAP
|
||||
|
|
@ -148,5 +151,9 @@ pub fn main() -> anyhow::Result<()> {
|
|||
write_ty(&mut f, pango::CAIRO_OPERATORS, "cairo_operator_t")?;
|
||||
write_ty(&mut f, pango::PANGO_ELLIPSIZE_MODES, "PangoEllipsizeMode_")?;
|
||||
|
||||
let mut f = open("fontconfig_tys.rs")?;
|
||||
write_ty(&mut f, fontconfig::FC_MATCH_KINDS, "FcMatchKind")?;
|
||||
write_ty(&mut f, fontconfig::FC_RESULTS, "FcResult")?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue