mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-01 06:06:49 -06:00
Port the CJK1 and AR1 changes from 3ecdb78 and de83cdc onto current main. Resolve translation and font-stack conflicts by retaining main localization and craft-fonts integration while preserving all typesetting code, tests, and documentation. Validation: all six CI gates passed, including 616 tests and WASM checks.
24 lines
559 B
Rust
24 lines
559 B
Rust
//! Portable character controls for bidirectional and Arabic text.
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub enum CharacterDirection {
|
|
#[default]
|
|
Default,
|
|
LeftToRight,
|
|
RightToLeft,
|
|
}
|
|
|
|
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub enum DiacriticPosition {
|
|
#[default]
|
|
Default,
|
|
OpenType,
|
|
OpenTypeFromBaseline,
|
|
Loose,
|
|
Medium,
|
|
Tight,
|
|
}
|