Fix `canvas_minimal`
This commit is contained in:
parent
7c5c43b50f
commit
bf6890b341
|
@ -26,7 +26,6 @@ use pathfinder_geometry::transform2d::Transform2F;
|
||||||
use pathfinder_geometry::vector::{Vector2F, vec2f};
|
use pathfinder_geometry::vector::{Vector2F, vec2f};
|
||||||
use pathfinder_renderer::paint::{Paint, PaintId};
|
use pathfinder_renderer::paint::{Paint, PaintId};
|
||||||
use pathfinder_renderer::scene::{ClipPath, ClipPathId, DrawPath, RenderTarget, Scene};
|
use pathfinder_renderer::scene::{ClipPath, ClipPathId, DrawPath, RenderTarget, Scene};
|
||||||
use skribo::FontCollection;
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::default::Default;
|
use std::default::Default;
|
||||||
use std::f32::consts::PI;
|
use std::f32::consts::PI;
|
||||||
|
@ -36,9 +35,15 @@ use std::sync::Arc;
|
||||||
|
|
||||||
pub use text::CanvasFontContext;
|
pub use text::CanvasFontContext;
|
||||||
|
|
||||||
|
#[cfg(feature = "pf-text")]
|
||||||
|
use skribo::FontCollection;
|
||||||
|
#[cfg(not(feature = "pf-text"))]
|
||||||
|
use crate::text::FontCollection;
|
||||||
|
|
||||||
#[cfg(feature = "pf-text")]
|
#[cfg(feature = "pf-text")]
|
||||||
pub use text::TextMetrics;
|
pub use text::TextMetrics;
|
||||||
|
|
||||||
|
|
||||||
const HAIRLINE_STROKE_WIDTH: f32 = 0.0333;
|
const HAIRLINE_STROKE_WIDTH: f32 = 0.0333;
|
||||||
const DEFAULT_FONT_SIZE: f32 = 10.0;
|
const DEFAULT_FONT_SIZE: f32 = 10.0;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
use pathfinder_canvas::{CanvasFontContext, CanvasRenderingContext2D, Path2D};
|
use pathfinder_canvas::{CanvasFontContext, CanvasRenderingContext2D, Path2D};
|
||||||
use pathfinder_color::ColorF;
|
use pathfinder_color::ColorF;
|
||||||
use pathfinder_geometry::rect::RectF;
|
use pathfinder_geometry::rect::RectF;
|
||||||
use pathfinder_geometry::vector::{Vector2F, Vector2I, vec2i};
|
use pathfinder_geometry::vector::{vec2f, vec2i};
|
||||||
use pathfinder_gl::{GLDevice, GLVersion};
|
use pathfinder_gl::{GLDevice, GLVersion};
|
||||||
use pathfinder_renderer::concurrent::rayon::RayonExecutor;
|
use pathfinder_renderer::concurrent::rayon::RayonExecutor;
|
||||||
use pathfinder_renderer::concurrent::scene_proxy::SceneProxy;
|
use pathfinder_renderer::concurrent::scene_proxy::SceneProxy;
|
||||||
|
|
Loading…
Reference in New Issue