Skip to main content

Module paint

Module paint 

Source
Expand description

시각 레이어 IR 모듈

semantic render tree를 backend-friendly layer tree로 변환한다.

Re-exports§

pub use builder::LayerBuilder;
pub use color_glyph::decode_colrv0_color_layers_payload;
pub use color_glyph::Colrv0ColorLayersDecodeError;
pub use color_glyph::Colrv0ColorLayersDecodeOptions;
pub use font::BinaryResourceKind;
pub use font::BinaryResourceRef;
pub use font::FontBlobKey;
pub use font::FontBlobResource;
pub use font::FontDigest;
pub use font::FontExternalRef;
pub use font::FontFaceKey;
pub use font::FontFaceResource;
pub use font::FontFallbackPolicyId;
pub use font::FontInstanceKey;
pub use font::FontPortability;
pub use font::FontPortabilityKind;
pub use font::FontResourceSource;
pub use font::FontResourceTable;
pub use font::GlyphRunReplayEligibility;
pub use font::LanguageTag;
pub use font::LocalizedName;
pub use font::OpenTypeFeatureSetting;
pub use font::ScriptTag;
pub use font::ShapeKey;
pub use font::ShapingEngineId;
pub use font::TextDirection;
pub use font::VariationAxisValue;
pub use font::WritingMode;
pub use font_glyph::decode_font_bitmap_glyph_payload;
pub use font_glyph::decode_font_svg_glyph_payload;
pub use font_glyph::lower_font_native_glyph_sidecars;
pub use font_glyph::resolve_embedded_font_face_index;
pub use font_glyph::EmbeddedFontFace;
pub use font_glyph::FontBitmapGlyphDecodeError;
pub use font_glyph::FontBitmapGlyphDecodeOptions;
pub use font_glyph::FontGlyphLoweringReport;
pub use font_glyph::FontSvgGlyphDecodeError;
pub use font_glyph::FontSvgGlyphDecodeOptions;
pub use layer_tree::CacheHint;
pub use layer_tree::ClipKind;
pub use layer_tree::GroupKind;
pub use layer_tree::LayerNode;
pub use layer_tree::LayerNodeKind;
pub use layer_tree::LayerOutputOptions;
pub use layer_tree::PageLayerTree;
pub use layer_tree::TextSourceAnnotation;
pub use layer_tree::TextSourceEntry;
pub use layer_tree::TextSourceId;
pub use layer_tree::TextSourceRange;
pub use layer_tree::TextSourceSpan;
pub use layer_tree::TextSourceTable;
pub use paint_op::BitmapGlyphFiltering;
pub use paint_op::BitmapGlyphPayload;
pub use paint_op::BitmapGlyphScalingPolicy;
pub use paint_op::ColorGlyphFormat;
pub use paint_op::ColorGradientStop;
pub use paint_op::ColorLayerNode;
pub use paint_op::ColorLayersPayload;
pub use paint_op::ColorLinearGradient;
pub use paint_op::ColorPaintClipNode;
pub use paint_op::ColorPaintCompositeMode;
pub use paint_op::ColorPaintCompositeNode;
pub use paint_op::ColorPaintGraphNode;
pub use paint_op::ColorPaintGraphNodeKind;
pub use paint_op::ColorPaintGraphPayload;
pub use paint_op::ColorPaintLinearGradientPathNode;
pub use paint_op::ColorPaintRadialGradientPathNode;
pub use paint_op::ColorPaintSolidPathNode;
pub use paint_op::ColorPaintSweepGradientPathNode;
pub use paint_op::ColorPaintTransformNode;
pub use paint_op::ColorRadialGradient;
pub use paint_op::ColorSweepGradient;
pub use paint_op::FontColorGlyphRef;
pub use paint_op::GlyphCluster;
pub use paint_op::GlyphClusterFlag;
pub use paint_op::GlyphOutlineFillRule;
pub use paint_op::GlyphOutlinePaintOrder;
pub use paint_op::GlyphOutlinePayloadKind;
pub use paint_op::GlyphOutlineStrokeCap;
pub use paint_op::GlyphOutlineStrokeJoin;
pub use paint_op::GlyphOutlineStrokeStyle;
pub use paint_op::GlyphRange;
pub use paint_op::GlyphRunDiagnostics;
pub use paint_op::GlyphRunOrientation;
pub use paint_op::GlyphTransform;
pub use paint_op::LayerAffineTransform;
pub use paint_op::LayerGlyphOutlinePaint;
pub use paint_op::LayerGlyphOutlinePath;
pub use paint_op::LayerGlyphRunPaint;
pub use paint_op::LayerPoint;
pub use paint_op::LayerVector;
pub use paint_op::PaintBounds;
pub use paint_op::PaintOp;
pub use paint_op::PaintTextStyle;
pub use paint_op::PaintVariantMeta;
pub use paint_op::PaletteRef;
pub use paint_op::ResolvedColor;
pub use paint_op::ResolvedImageKind;
pub use paint_op::ResolvedImagePayload;
pub use paint_op::SvgGlyphPayload;
pub use paint_op::TextDecorationKind;
pub use paint_op::TextDecorationPaintGeometry;
pub use paint_op::TextRunPlacement;
pub use paint_op::TextVariantKind;
pub use paint_op::TextVariantQuality;
pub use profile::RenderProfile;
pub use replay_order::paint_op_replay_plane;
pub use replay_order::paint_op_replay_plane_with_layer;
pub use replay_order::render_layer_replay_plane;
pub use replay_order::FlowStaticOcclusion;
pub use replay_order::PaintReplayPlane;
pub use resources::font_blob_resource_key;
pub use resources::image_resource_key;
pub use resources::parse_font_blob_resource_key;
pub use resources::parse_source_image_key;
pub use resources::resource_digest_hex;
pub use resources::source_image_key;
pub use resources::svg_resource_key;
pub use resources::FontBlobResourceId;
pub use resources::ImageResourceId;
pub use resources::ResourceArena;
pub use resources::SourceImageVariant;
pub use resources::SvgResourceId;
pub use resources::RESOURCE_KEY_ALGORITHM;
pub use schema::LayerTreeSchema;
pub use schema::LAYER_TREE_SCHEMA;
pub use schema::PAGE_LAYER_TREE_COORDINATE_SYSTEM;
pub use schema::PAGE_LAYER_TREE_RESOURCE_TABLE_MINOR_VERSION;
pub use schema::PAGE_LAYER_TREE_RESOURCE_TABLE_VERSION;
pub use schema::PAGE_LAYER_TREE_SCHEMA_MINOR_VERSION;
pub use schema::PAGE_LAYER_TREE_SCHEMA_VERSION;
pub use schema::PAGE_LAYER_TREE_UNIT;
pub use text_shape::FontRequest;
pub use text_shape::FontResolver;
pub use text_shape::GlyphRunQuality;
pub use text_shape::JustificationMode;
pub use text_shape::LineBreakChangeRisk;
pub use text_shape::LineBreakContextValue;
pub use text_shape::LineBreakShadowReport;
pub use text_shape::NoopFontResolver;
pub use text_shape::ResolvedFontFace;
pub use text_shape::ResolvedGlyphRun;
pub use text_shape::ShapedMeasurementLineReport;
pub use text_shape::ShapedMeasurementPageSummary;
pub use text_shape::ShapedMeasurementParagraphSummary;
pub use text_shape::ShapedMeasurementRunReport;
pub use text_shape::TabStopSummary;
pub use text_shape::TableCellConstraintSummary;
pub use text_shape::TextShapeDiagnostic;
pub use text_shape::TextShapeLowerer;
pub use text_shape::TextShapeReport;
pub use text_v2::TextV2CompatibilityProfile;
pub use text_v2::TextV2Diagnostics;
pub use text_v2::TextV2LineBreakRisk;
pub use text_v2::TextV2LineBreakRiskLevel;
pub use text_v2::TextV2SlotDiagnostic;
pub use text_v2::TextV2ValidationIssue;
pub use text_v2::TextV2ValidationSeverity;
pub use text_v2::TextV2VariantDiagnostic;
pub use text_variants::text_visual_replay_role;
pub use text_variants::validate_text_variant_scope;
pub use text_variants::TextVariantScopeError;
pub use text_variants::TextVisualReplayRole;

Modules§

builder
color_glyph
Producer-side helpers for strict color glyph payloads.
font
font_glyph
Producer-side lowering for font-native bitmap and SVG glyph resources.
layer_tree
paint_op
profile
replay_order
resources
schema
text_shadow
HWP5 표 33·35의 글자 그림자를 한 번 해소해 출력 경로가 함께 재생한다.
text_shape
text_v2
Text IR v2 diagnostics and compatibility profile guards.
text_variants
Text variant grouping validation.

Structs§

LayerJsonOptions
레이어 트리 JSON 직렬화 옵션 (Task #3315).
LayerTextPaintOpV2
One validated text slot. The source tree must outlive this snapshot.
LayerTextVariantPart
LayerTextVariantSet

Enums§

TextFallbackPolicy

Functions§

downgrade_text_v2_op_to_v1_compat
Returns this slot’s original v1 text payloads, with each variant’s parts in local paint order. Keep the original ancestor layers, resources, source table and separate non-text visual ops; this does not reconstruct a whole page.