paragraph/text_style.rs reorder order of updated functions to match the Skia include files
@@ -198,15 +198,6 @@ impl Handle<sb::skia_textlayout_TextStyle> {
self
}
- pub fn font_size(&self) -> scalar {
- self.native().fFontSize
- }
-
- pub fn set_font_size(&mut self, font_size: scalar) -> &mut Self {
- self.native_mut().fFontSize = font_size;
- self
- }
-
pub fn shadows(&self) -> &[TextShadow] {
unsafe {
let ts: &sb::TextShadows = transmute_ref(&self.native().fTextShadows);
@@ -226,6 +217,15 @@ impl Handle<sb::skia_textlayout_TextStyle> {
self
}
+ pub fn font_size(&self) -> scalar {
+ self.native().fFontSize
+ }
+
+ pub fn set_font_size(&mut self, size: scalar) -> &mut Self {
+ self.native_mut().fFontSize = size;
+ self
+ }
+
pub fn font_families(&self) -> FontFamilies {
unsafe {
let mut count = 0;
