mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-10 01:52:46 +00:00
Type: import the anti-aliasing types the merge with main needs
main made the render and doc crates' imports explicit, so the merged branch named TypeAntiAlias, TypeEdgeEntry, Pixmap, AntiAlias, single_threaded_context and MAX_RASTER_SIDE without importing them.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use super::area::{AreaOptions, PathAlign, PathEffect};
|
||||
use super::char_style::CharStyle;
|
||||
use super::para_style::ParaStyle;
|
||||
use super::runs::{RubySpan, TextKind, TextRun, move_anchors, reverse_from_end};
|
||||
use super::runs::{RubySpan, TextKind, TextRun, TypeAntiAlias, move_anchors, reverse_from_end};
|
||||
use super::tabs_lists::ParaList;
|
||||
use super::{Affine, PathData, Point, Rect, TextObject, TextStyleScale, Vec2};
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
use super::options::{AntiAlias, RenderOptions};
|
||||
use super::threads::single_threaded_context;
|
||||
use super::{Affine, Arc, BezPath, Document, FillRule, HashMap, Ink, Node, Rect, RenderContext, SymbolBoxes, TextObject, live};
|
||||
use super::{
|
||||
Affine, Arc, BezPath, Document, FillRule, HashMap, Ink, Node, Pixmap, Rect, RenderContext, SymbolBoxes, TextObject, TypeAntiAlias, fx, kurbo,
|
||||
live,
|
||||
};
|
||||
|
||||
/// Hasher for pointer-keyed caches: a multiply-xorshift (SipHash showed up in frame profiles).
|
||||
#[derive(Default, Clone, Copy)]
|
||||
|
||||
@@ -3,7 +3,9 @@ use super::{
|
||||
PlacedKey, Rect, RenderContext, Renderer, SUBSTITUTED, Shape, TextGeom, TextObject, blend_mode, blob_pixmap, depends_on_document, fx, holds_type,
|
||||
image_mip, ink, kurbo, lru, peniko, place, proof, stain_bits, text_geom, text_geom_snapped, vello_cpu,
|
||||
};
|
||||
use super::{AntiAlias, Pixmap, single_threaded_context};
|
||||
use crate::paint;
|
||||
use crate::{MAX_RASTER_SIDE, TypeAntiAlias, TypeEdgeEntry};
|
||||
|
||||
impl Renderer {
|
||||
pub(super) fn draw_text(&mut self, ctx: &mut RenderContext, f: &Frame, n: &Node, t: &TextObject) {
|
||||
|
||||
Reference in New Issue
Block a user