mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
stylo: Add basic system font support, use for font-size and font-family
This commit is contained in:
parent
2b5c17c43a
commit
c1c4c8fa59
9 changed files with 261 additions and 11 deletions
|
@ -695,6 +695,9 @@ extern "C" {
|
|||
pub fn Gecko_Atomize(aString: *const ::std::os::raw::c_char, aLength: u32)
|
||||
-> *mut nsIAtom;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_Atomize16(aString: *const nsAString) -> *mut nsIAtom;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_AddRefAtom(aAtom: *mut nsIAtom);
|
||||
}
|
||||
|
@ -731,6 +734,14 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Gecko_CopyFontFamilyFrom(dst: *mut nsFont, src: *const nsFont);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_nsFont_InitSystem(dst: *mut nsFont, font_id: i32,
|
||||
font: *const nsStyleFont,
|
||||
pres_context: RawGeckoPresContextBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_nsFont_Destroy(dst: *mut nsFont);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SetImageOrientation(aVisibility: *mut nsStyleVisibility,
|
||||
aRadians: f64, aFlip: bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue