@@ -14,7 +14,7 @@ use crate::font::{CGFont, CGGlyph};
14
14
use crate :: geometry:: { CGPoint , CGSize } ;
15
15
use crate :: gradient:: { CGGradient , CGGradientDrawingOptions } ;
16
16
use crate :: path:: CGPathRef ;
17
- use core:: ffi:: { c_int , c_void} ;
17
+ use core:: ffi:: c_void;
18
18
use core_foundation:: base:: { CFTypeID , TCFType } ;
19
19
20
20
use crate :: geometry:: { CGAffineTransform , CGRect } ;
@@ -223,12 +223,6 @@ impl CGContextRef {
223
223
unsafe { CGContextSetAllowsFontSmoothing ( self . as_ptr ( ) , allows_font_smoothing) }
224
224
}
225
225
226
- pub fn set_font_smoothing_style ( & self , style : i32 ) {
227
- unsafe {
228
- CGContextSetFontSmoothingStyle ( self . as_ptr ( ) , style as _ ) ;
229
- }
230
- }
231
-
232
226
pub fn set_should_smooth_fonts ( & self , should_smooth_fonts : bool ) {
233
227
unsafe { CGContextSetShouldSmoothFonts ( self . as_ptr ( ) , should_smooth_fonts) }
234
228
}
@@ -639,7 +633,6 @@ extern "C" {
639
633
fn CGContextSetBlendMode ( c : crate :: sys:: CGContextRef , blendMode : CGBlendMode ) ;
640
634
fn CGContextSetAllowsFontSmoothing ( c : crate :: sys:: CGContextRef , allowsFontSmoothing : bool ) ;
641
635
fn CGContextSetShouldSmoothFonts ( c : crate :: sys:: CGContextRef , shouldSmoothFonts : bool ) ;
642
- fn CGContextSetFontSmoothingStyle ( c : crate :: sys:: CGContextRef , style : c_int ) ;
643
636
fn CGContextSetAllowsAntialiasing ( c : crate :: sys:: CGContextRef , allowsAntialiasing : bool ) ;
644
637
fn CGContextSetShouldAntialias ( c : crate :: sys:: CGContextRef , shouldAntialias : bool ) ;
645
638
fn CGContextSetAllowsFontSubpixelQuantization (
0 commit comments