Arabic: UI font fallback, and the docs

Arabic text needs a font with Arabic glyphs; egui already shapes it and orders
right-to-left runs. The script joins the CJK ones in the lazy fallback fonts:
Noto Sans Arabic from craft-fonts (desktop and web, 0.8 MB), else Segoe UI,
Tahoma or Arial on Windows, SF Arabic or Geeza Pro on macOS, and Noto Sans
Arabic or DejaVu Sans on Linux and FreeBSD. Without any, the picker lists Arabic
by its English name, as for CJK.

ATTRIBUTION, the localization table (panels keep the left-to-right layout),
features, README and roadmap count ten languages.
This commit is contained in:
bflatastic committed 2026-11-02 03:28:59 +07:00
1 parent fc510fc892
commit eb812f90d4
8 files changed
+91 -171

No files matched your search

+2 -2
View File
@@ -34,9 +34,9 @@ These come from Rust crate dependencies (not files in this repository) and keep
| Phosphor Icons (regular), via the `egui-phosphor` crate (vendored in `vendor/egui-phosphor` for egui 0.37) | Every UI icon (tools, layers, panels) | Phosphor Icons (Helena Zhang, Tobias Fried) | https://phosphoricons.com, https://github.com/amPerl/egui-phosphor | MIT (icons); crate MIT OR Apache-2.0 |
| egui default fonts (Ubuntu-Light, Hack, Noto Emoji, emoji-icon-font), via `epaint_default_fonts` | UI text | Canonical / Source Foundry / Google / Jessie Jung | https://github.com/emilk/egui | Ubuntu Font Licence 1.0, MIT + Bitstream Vera License, OFL 1.1, MIT |
| Only in builds made with `CRAFT_FONTS_DIR`: Inter Regular and SemiBold (desktop and web), from storytold/craft-fonts' Latin catalog (`crates/ui-egui/build.rs`) | Interface text | The Inter Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/latin-manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
| Only in builds made with `CRAFT_FONTS_DIR`: BIZ UDPGothic Regular (desktop and web) and Noto Sans CJK SC Regular (desktop), from storytold/craft-fonts (`crates/ui-egui/build.rs`) | Japanese and Chinese UI text | The BIZ UDGothic Project Authors (Morisawa Inc.); The Noto Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
| Only in builds made with `CRAFT_FONTS_DIR`: BIZ UDPGothic Regular (desktop and web), Noto Sans CJK SC Regular (desktop) and Noto Sans Arabic Regular (desktop and web), from storytold/craft-fonts (`crates/ui-egui/build.rs`) | Japanese, Chinese and Arabic UI text | The BIZ UDGothic Project Authors (Morisawa Inc.); The Noto Project Authors | https://github.com/storytold/craft-fonts (pinned sources in its `fonts/manifest.txt` and `ATTRIBUTION.md`) | OFL 1.1 |
Without craft-fonts, Chinese, Japanese and Korean UI text uses the operating system's fonts at run
Without craft-fonts, Chinese, Japanese, Korean and Arabic UI text uses the operating system's fonts at run
time (nothing is bundled); see [docs/localization-parity.md](docs/localization-parity.md).
## Procedural content (no asset files)
+2 -2
View File
@@ -154,7 +154,7 @@ cargo xtask ci # fmt, clippy, test
You need Rust 1.95 or newer. The app opens with a baked sample project; **File ▸ New project** starts
from a built-in mesh, a project template or your own mesh file (UVs are generated if it has none).
Japanese, Chinese and Korean interface text uses the fonts of
Japanese, Chinese, Korean and Arabic interface text uses the fonts of
[storytold/craft-fonts](https://github.com/storytold/craft-fonts) where it has them, an optional
build input (releases always use it): `CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo run --release -p texturecraft`
(an absolute path). Without it, the desktop app uses the installed system fonts.
@@ -184,7 +184,7 @@ area, the remaining work and what's next.
to end, weighted by how much of the day each area carries: importing meshes, texture sets and UDIM
tiles, the layer stack with masks, effects and smart materials, every painting tool, baking, the PBR
viewport and Rendering mode, export presets and templates, and the full menu set. The interface
speaks English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese and Korean;
speaks English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese, Korean and Arabic;
[localization-parity.md](docs/localization-parity.md) has the details. The scores are self-assessed
from our code against public documentation.
+1 -1
View File
@@ -20,7 +20,7 @@ end to end today (engine + UI + automation + tests), not what is planned.
| Viewport and display | 12 | 95% | PBR with image-based lighting, 6 procedural environments or imported HDR/EXR panoramas with exposure, rotation, blur, opacity, ACES/linear tone mapping, HDR pipeline with bloom, vignette, sharpen and grain, key-light shadows, 4× MSAA plus idle temporal accumulation, channel / mesh-map / mask / UV checker views, 3D and 2D wireframes, brush cursor, axis gizmos, subsurface scattering blur, **depth of field**, saved cameras and cameras from glTF, FBX, COLLADA and USD files, displacement (also in shadows and the path tracers), **path-traced Rendering mode** (F10, on the GPU or the CPU) with environment importance sampling and an edge-aware **denoiser** | Hardware ray tracing |
| Shader | 6 | 100% | Metallic/roughness and specular/glossiness PBR, **clear coat, sheen, anisotropy and subsurface scattering** (viewport and path tracer), height-to-normal, painted normals, parallax occlusion, emissive, opacity (dithered), AO intensity | — |
| Export | 8 | 92% | 10 presets (incl. Godot 4 and **OpenPBR** with every shading lobe) plus **user output templates** (per-channel packing, converted maps, JSON import/export), PNG/JPEG/TGA/TIFF/BMP/WEBP/EXR/HDR, 8/16/32-bit, padding modes, size override, OpenGL/DirectX normals, `$udim` tiles, OBJ, textured GLB (with clearcoat/sheen) and USD (with clear coat) mesh export, zip download in the browser | Sheen and anisotropy in USD (UsdPreviewSurface has no inputs for them; GLB and OpenPBR maps carry them) |
| UI and UX | 8 | 95% | Painter-style layout with **dockable, tabbed, floating panels**, menus, tool shelf, tool bar, asset shelf, texture set list, layer stack with context menu, properties, display/shader/history/log panels, export dialog, new project dialog, bake mode, rendering mode, settings (interface scale, autosave, viewport texture resolution, system title bar), **own title bar** with the app icon and window buttons (Windows, GNOME; integrated with the macOS traffic lights), saved UI layouts, **shortcut editor** with conflict detection, tooltips with shortcuts; all menu items live ([docs/parity.md](docs/parity.md)); **9 UI languages** with CJK fonts ([docs/localization-parity.md](docs/localization-parity.md)); closed panels reopen where they were; frame-budgeted compositing and uploads keep 8K sets responsive | Native-speaker review of the translations |
| UI and UX | 8 | 95% | Painter-style layout with **dockable, tabbed, floating panels**, menus, tool shelf, tool bar, asset shelf, texture set list, layer stack with context menu, properties, display/shader/history/log panels, export dialog, new project dialog, bake mode, rendering mode, settings (interface scale, autosave, viewport texture resolution, system title bar), **own title bar** with the app icon and window buttons (Windows, GNOME; integrated with the macOS traffic lights), saved UI layouts, **shortcut editor** with conflict detection, tooltips with shortcuts; all menu items live ([docs/parity.md](docs/parity.md)); **10 UI languages** with CJK and Arabic fonts ([docs/localization-parity.md](docs/localization-parity.md)); closed panels reopen where they were; frame-budgeted compositing and uploads keep 8K sets responsive | Native-speaker review of the translations |
| Platforms | 4 | 75% | Windows, macOS (universal, signed and notarized), Linux (AppImage, deb, rpm, tar.gz, Flatpak), FreeBSD and web release workflows | First real release run; web build polish |
| **Total** | **100** | **≈ 93%** | | |
+4 -2
View File
@@ -1,5 +1,5 @@
//! Embeds the optional craft-fonts UI fonts (storytold/craft-fonts) when `CRAFT_FONTS_DIR` points
//! at a checkout: Inter for the interface (from its Latin catalog) and the CJK
//! at a checkout: Inter for the interface (from its Latin catalog) and the CJK and Arabic
//! faces; without it `CRAFT_FONTS` is empty and the UI uses egui's and the system's fonts. The
//! recipe follows craft-fonts' `docs/integration.md`; no font file is committed here. The Latin
//! faces are embedded without their Private Use Area ([`without_private_use`]).
@@ -10,10 +10,12 @@ use std::path::PathBuf;
/// The UI faces TextureCraft embeds (family, style) per manifest: desktop, then web (the web build
/// has a download budget: of the CJK faces only the Japanese one, ~4.5 MB).
const MANIFESTS: &[(&str, Faces, Faces)] = &[
("fonts/manifest.txt", &[("BIZ UDPGothic", "Regular"), ("Noto Sans CJK SC", "Regular")], &[("BIZ UDPGothic", "Regular")]),
("fonts/manifest.txt", &[("BIZ UDPGothic", "Regular"), ("Noto Sans CJK SC", "Regular"), ARABIC], &[("BIZ UDPGothic", "Regular"), ARABIC]),
// The interface font, regular and semibold (0.8 MB).
(LATIN_MANIFEST, LATIN, LATIN),
];
/// The Arabic face (0.8 MB, so the web build has it too).
const ARABIC: (&str, &str) = ("Noto Sans Arabic", "Regular");
/// Newer than the core catalog: a checkout without it keeps the default interface font.
const LATIN_MANIFEST: &str = "fonts/latin-manifest.txt";
const LATIN: Faces = &[("Inter", "Regular"), ("Inter", "SemiBold")];
+35 -14
View File
@@ -1,15 +1,17 @@
//! CJK fallback fonts for the UI. egui's default fonts have no Japanese, Chinese or Korean
//! glyphs, so translated UIs (and CJK layer or file names) need more fonts. They come from:
//! CJK and Arabic fallback fonts for the UI. egui's default fonts have no Japanese, Chinese,
//! Korean or Arabic glyphs, so translated UIs (and such layer or file names) need more fonts.
//! They come from:
//!
//! 1. craft-fonts, embedded at build time when `CRAFT_FONTS_DIR` points at a checkout (optional;
//! see `build.rs` and storytold/craft-fonts' `docs/integration.md`);
//! 2. on desktop, the operating system's CJK fonts (Windows, macOS, Linux and BSD paths).
//! 2. on desktop, the operating system's fonts (Windows, macOS, Linux and BSD paths).
//!
//! Fonts load lazily: one script when the UI language needs it, all three while the language
//! Fonts load lazily: one script when the UI language needs it, all of them while the language
//! picker shows every language's own name. They are appended after the app's fonts
//! (`theme::font_definitions`), so Latin text and row heights keep the interface font; the current language's script goes first, so
//! shared Han characters take that language's glyph forms. In the browser only craft-fonts
//! can supply them (without it, a CJK language shows its English name in the picker).
//! shared Han characters take that language's glyph forms. egui shapes Arabic and orders
//! right-to-left runs itself. In the browser only craft-fonts can supply them (without it, the
//! language shows its English name in the picker).
use std::sync::Arc;
@@ -35,10 +37,11 @@ pub enum Script {
Japanese,
Chinese,
Korean,
Arabic,
}
impl Script {
pub const ALL: [Script; 3] = [Script::Japanese, Script::Chinese, Script::Korean];
pub const ALL: [Script; 4] = [Script::Japanese, Script::Chinese, Script::Korean, Script::Arabic];
/// The script a UI language needs beyond Latin.
pub fn of_language(code: &str) -> Option<Script> {
@@ -46,6 +49,7 @@ impl Script {
"ja" => Some(Script::Japanese),
"zh-Hans" => Some(Script::Chinese),
"ko" => Some(Script::Korean),
"ar" => Some(Script::Arabic),
_ => None,
}
}
@@ -56,6 +60,7 @@ impl Script {
Script::Japanese => "Jpan",
Script::Chinese => "Hans",
Script::Korean => "Kore",
Script::Arabic => "Arab",
}
}
@@ -70,6 +75,7 @@ impl Script {
Script::Japanese => &["YuGothR.ttc", "meiryo.ttc", "msgothic.ttc"],
Script::Chinese => &["msyh.ttc", "simsun.ttc", "simhei.ttf"],
Script::Korean => &["malgun.ttf", "gulim.ttc"],
Script::Arabic => &["segoeui.ttf", "tahoma.ttf", "arial.ttf"],
};
v.extend(files.iter().map(|f| (fonts.join(f), 0)));
} else if cfg!(target_os = "macos") {
@@ -79,13 +85,26 @@ impl Script {
&["/System/Library/Fonts/Hiragino Sans GB.ttc", "/System/Library/Fonts/STHeiti Light.ttc", "/System/Library/Fonts/PingFang.ttc"]
}
Script::Korean => &["/System/Library/Fonts/AppleSDGothicNeo.ttc"],
Script::Arabic => &["/System/Library/Fonts/SFArabic.ttf", "/System/Library/Fonts/Supplemental/GeezaPro.ttc"],
};
v.extend(files.iter().map(|f| (PathBuf::from(f), 0)));
v.push((PathBuf::from("/System/Library/Fonts/Supplemental/Arial Unicode.ttf"), 0));
} else if self == Script::Arabic {
for f in [
"/usr/share/fonts/truetype/noto/NotoSansArabic-Regular.ttf",
"/usr/share/fonts/noto/NotoSansArabic-Regular.ttf",
"/usr/share/fonts/google-noto/NotoSansArabic-Regular.ttf",
"/usr/local/share/fonts/noto/NotoSansArabic-Regular.ttf",
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
"/usr/share/fonts/dejavu/DejaVuSans.ttf",
"/usr/local/share/fonts/dejavu/DejaVuSans.ttf",
] {
v.push((PathBuf::from(f), 0));
}
} else {
// Noto Sans CJK collections hold JP, KR, SC, TC and HK faces, in that order.
let face = match self {
Script::Japanese => 0,
Script::Japanese | Script::Arabic => 0,
Script::Korean => 1,
Script::Chinese => 2,
};
@@ -136,7 +155,7 @@ impl UiFonts {
let mut defs = crate::theme::font_definitions();
for s in &want {
let Some(data) = self.data(*s) else { continue };
let name = format!("cjk-{}", s.iso());
let name = format!("script-{}", s.iso());
defs.font_data.insert(name.clone(), data);
for family in [FontFamily::Proportional, FontFamily::Monospace, FontFamily::Name(crate::theme::SEMIBOLD.into())] {
defs.families.entry(family).or_default().push(name.clone());
@@ -257,10 +276,12 @@ mod tests {
assert_eq!(Script::of_language("ja"), Some(Script::Japanese));
assert_eq!(Script::of_language("zh-Hans"), Some(Script::Chinese));
assert_eq!(Script::of_language("ko"), Some(Script::Korean));
assert_eq!(Script::of_language("ar"), Some(Script::Arabic));
assert_eq!(Script::of_language("de"), None);
for l in &crate::i18n::LANGUAGES {
let cjk = l.name.chars().any(|c| !c.is_ascii() && c > '\u{2E80}');
assert_eq!(cjk, Script::of_language(l.code).is_some(), "{}", l.code);
// Past the Latin blocks and their diacritics.
let other_script = l.name.chars().any(|c| c > '\u{036F}');
assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code);
}
}
@@ -273,10 +294,10 @@ mod tests {
f.update(&ctx, "ko", false);
assert_eq!(f.installed, [Script::Korean]);
f.update(&ctx, "ja", true);
assert_eq!(f.installed, [Script::Japanese, Script::Chinese, Script::Korean]);
assert_eq!(f.installed, Script::ALL);
// Closing the picker keeps what is loaded; each script was read at most once.
f.update(&ctx, "ja", false);
assert_eq!(f.installed.len(), 3);
assert_eq!(f.loaded.len(), 3);
assert_eq!(f.installed.len(), Script::ALL.len());
assert_eq!(f.loaded.len(), Script::ALL.len());
}
}
+35 -140
View File
@@ -30,10 +30,7 @@ pub const TABLE: &[(&str, &str)] = &[
"Add a fill layer with this material above the selected layer (or drag it into the layer stack)",
"إضافة طبقة تعبئة بهذه المادة فوق الطبقة المحددة (أو اسحبها إلى مكدس الطبقات)",
),
(
"Add an anchor point to a layer below to use its stack as a mask.",
"أضف نقطة ارتكاز إلى طبقة سفلية لاستخدام مكدسها كقناع.",
),
("Add an anchor point to a layer below to use its stack as a mask.", "أضف نقطة ارتكاز إلى طبقة سفلية لاستخدام مكدسها كقناع."),
("Add anchor point", "إضافة نقطة ارتكاز"),
("Add as decal (view center)", "إضافة كملصق (مركز العرض)"),
("Add black mask", "إضافة قناع أسود"),
@@ -157,10 +154,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Clear", "مسح"),
("Clear mask", "مسح القناع"),
("Clear recent projects", "مسح المشاريع الأخيرة"),
(
"Click a mesh part to show or hide the selected layer on it.",
"انقر على جزء من المجسم لإظهار أو إخفاء الطبقة المحددة عليه.",
),
("Click a mesh part to show or hide the selected layer on it.", "انقر على جزء من المجسم لإظهار أو إخفاء الطبقة المحددة عليه."),
("Click the mesh to pick its material into the brush", "انقر على المجسم لالتقاط مادته إلى الفرشاة"),
("Click the mesh to place the decal", "انقر على المجسم لوضع الملصق"),
("Click, then press the new shortcut (Esc cancels)", "انقر، ثم اضغط الاختصار الجديد (Esc للإلغاء)"),
@@ -177,21 +171,12 @@ pub const TABLE: &[(&str, &str)] = &[
("Color burn", "حرق لوني (Color Burn)"),
("Color dodge", "تفتيح لوني (Color Dodge)"),
("Color map", "خريطة الألوان"),
(
"Color of the light that travels under the surface (each channel goes as far as its value)",
"لون الضوء المنتقل تحت السطح (تصل كل قناة بقدر قيمتها)",
),
("Color of the light that travels under the surface (each channel goes as far as its value)", "لون الضوء المنتقل تحت السطح (تصل كل قناة بقدر قيمتها)"),
("Color picker", "منتقي الألوان"),
("Color selection", "تحديد لوني"),
("Color to replace", "اللون المراد استبداله"),
(
"Colors near the first shift towards the second, keeping their shading.",
"الألوان القريبة من الأولى تتحول نحو الثانية مع الحفاظ على تظليلها.",
),
(
"Colors read as gray. Add a levels or blur effect above to shape the result.",
"تُقرأ الألوان كرمادي. أضف تأثير مستويات أو تمويه في الأعلى لتشكيل النتيجة.",
),
("Colors near the first shift towards the second, keeping their shading.", "الألوان القريبة من الأولى تتحول نحو الثانية مع الحفاظ على تظليلها."),
("Colors read as gray. Add a levels or blur effect above to shape the result.", "تُقرأ الألوان كرمادي. أضف تأثير مستويات أو تمويه في الأعلى لتشكيل النتيجة."),
("Combine with the layer's height", "الدمج مع ارتفاع الطبقة"),
("Common parameters", "المعلمات المشتركة"),
("Compare mask", "قناع مقارنة"),
@@ -203,10 +188,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Converted maps", "الخرائط المحوّلة"),
("Copy from", "نسخ من"),
("Copy layer(s)", "نسخ الطبقة (الطبقات)"),
(
"Copy the selected layer alone (its empty parts copy nothing)",
"نسخ الطبقة المحددة وحدها (الأجزاء الفارغة لا تنسخ شيئاً)",
),
("Copy the selected layer alone (its empty parts copy nothing)", "نسخ الطبقة المحددة وحدها (الأجزاء الفارغة لا تنسخ شيئاً)"),
("Copy these bake settings to every texture set", "نسخ إعدادات الخبز هذه إلى كل مجموعة خامات"),
("Copy to all texture sets", "نسخ إلى جميع مجموعات الخامات"),
("Copy what the texture set shows", "نسخ ما تعرضه مجموعة الخامات"),
@@ -230,10 +212,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Cyan / red", "سماوي / أحمر"),
("Cylinder", "أسطوانة"),
("Cylindrical projection", "إسقاط أسطواني"),
(
"Dark to light: the content's luminance picks a color along these stops.",
"من الداكن إلى الفاتح: تحدد إضاءة المحتوى لوناً على طول نقاط التوقف هذه.",
),
("Dark to light: the content's luminance picks a color along these stops.", "من الداكن إلى الفاتح: تحدد إضاءة المحتوى لوناً على طول نقاط التوقف هذه."),
("Darken (Min)", "تغميق (الحد الأدنى)"),
("Decal", "ملصق"),
("Decal projection", "إسقاط الملصق"),
@@ -246,10 +225,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Depth", "العمق"),
("Depth of field", "عمق الميدان"),
("Depth of field (viewport and Rendering mode)", "عمق الميدان (منفذ العرض ونمط التصيير)"),
(
"Depth of the sharp plane along the view (0: the orbit center)",
"عمق المستوى الحاد على طول خط النظر (0: مركز المدار)",
),
("Depth of the sharp plane along the view (0: the orbit center)", "عمق المستوى الحاد على طول خط النظر (0: مركز المدار)"),
("Difference", "الفرق"),
("Dilation + default background color", "تمديد + لون الخلفية الافتراضي"),
("Dilation + transparent", "تمديد + شفاف"),
@@ -277,10 +253,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Download as", "تنزيل باسم"),
("Downloaded {name}", "تم تنزيل {name}"),
("Drag onto an output channel", "اسحب إلى قناة إخراج"),
(
"Drags the layer stack's values along the stroke into the selected layer.",
"يسحب قيم مكدس الطبقات على طول الضربة إلى الطبقة المحددة.",
),
("Drags the layer stack's values along the stroke into the selected layer.", "يسحب قيم مكدس الطبقات على طول الضربة إلى الطبقة المحددة."),
(
"Draws {name} of texture set \"{set}\". Edits to the source show in every instance.",
"يرسم {name} لمجموعة الخامات \"{set}\". التعديلات على المصدر تظهر في كل نسخة.",
@@ -296,10 +269,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Edit", "تحرير"),
("Edit keyboard shortcuts...", "تعديل اختصارات لوحة المفاتيح..."),
("Edit quick mask", "تحرير القناع السريع"),
(
"Editing quick mask: paint where painting is allowed (U to finish)",
"تحرير القناع السريع: ارسم حيث يُسمح بالرسم (اضغط U للإنهاء)",
),
("Editing quick mask: paint where painting is allowed (U to finish)", "تحرير القناع السريع: ارسم حيث يُسمح بالرسم (اضغط U للإنهاء)"),
(
"Editing the quick mask: strokes paint where painting is allowed. Press U to finish.",
"تحرير القناع السريع: ترسم الضربات حيث يُسمح بالرسم. اضغط U للإنهاء.",
@@ -338,10 +308,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Fill", "تعبئة"),
("Fill the closed path (lasso)", "تعبئة المسار المغلق (حبل التحديد)"),
("Fill the path (close it first)", "تعبئة المسار (أغلقه أولاً)"),
(
"Filter the remaining noise while keeping edges and texture detail",
"تصفية الضوضاء المتبقية مع الحفاظ على الحواف وتفاصيل الخامة",
),
("Filter the remaining noise while keeping edges and texture detail", "تصفية الضوضاء المتبقية مع الحفاظ على الحواف وتفاصيل الخامة"),
("Filters", "مرشحات"),
("Fine noise", "ضوضاء دقيقة"),
("Fingerprints", "بصمات أصابع"),
@@ -353,10 +320,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Folder", "مجلد"),
("Folders", "مجلدات"),
("Follow path", "اتباع المسار"),
(
"Free and open source (MIT OR Apache-2.0), written in Rust.",
"مجاني ومفتوح المصدر (MIT أو Apache-2.0)، كُتب بلغة Rust.",
),
("Free and open source (MIT OR Apache-2.0), written in Rust.", "مجاني ومفتوح المصدر (MIT أو Apache-2.0)، كُتب بلغة Rust."),
("From normal map", "من خريطة النواظم"),
(
"From normal map: curvature of the baked normal map's detail instead of the mesh.",
@@ -432,10 +396,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Images", "صور"),
("Import HDR...", "استيراد HDR..."),
("Import a template (.json)", "استيراد قالب (.json)"),
(
"Import an image (File > Import resources) to project it onto the mesh.",
"استورد صورة (ملف > استيراد الموارد) لإسقاطها على المجسم.",
),
("Import an image (File > Import resources) to project it onto the mesh.", "استورد صورة (ملف > استيراد الموارد) لإسقاطها على المجسم."),
("Import images to use them in fills and masks", "استورد الصور لاستخدامها في التعبئة والأقنعة"),
("Import resources...", "استيراد الموارد..."),
("Import...", "استيراد..."),
@@ -475,10 +436,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Lazy mouse and symmetry", "الفأرة الكسولة والتناظر"),
("Lazy mouse distance", "مسافة الفأرة الكسولة"),
("Leather grain", "حبيبات جلدية"),
(
"Lens size: how quickly things blur away from the focus distance",
"حجم العدسة: سرعة تمويه العناصر البعيدة عن مسافة التركيز",
),
("Lens size: how quickly things blur away from the focus distance", "حجم العدسة: سرعة تمويه العناصر البعيدة عن مسافة التركيز"),
("Level", "المستوى"),
("Levels", "المستويات"),
("Lifetime (steps)", "عمر الجسيم (بالخطوات)"),
@@ -534,10 +492,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Missing (bake to create)", "مفقود (اخبز للإنشاء)"),
("Mixed AO", "انسداد محيطي مختلط"),
("Mode", "النمط"),
(
"More in Assets > Alphas: click one, or drag it here",
"المزيد في الأصول > أقنعة ألفا: انقر على واحد، أو اسحبه إلى هنا",
),
("More in Assets > Alphas: click one, or drag it here", "المزيد في الأصول > أقنعة ألفا: انقر على واحد، أو اسحبه إلى هنا"),
("Mosaic", "فسيفساء"),
("Move down", "تحريك لأسفل"),
("Move up", "تحريك لأعلى"),
@@ -553,10 +508,7 @@ pub const TABLE: &[(&str, &str)] = &[
("New template", "قالب جديد"),
("No GPU renderer available", "لا يتوفر مصيّر GPU"),
("No font on this system can show this language", "لا يوجد خط على هذا النظام يمكنه عرض هذه اللغة"),
(
"No outputs yet: add one above, then drag input maps onto its channels.",
"لا توجد مخرجات بعد: أضف مخرجاً بالأعلى، ثم اسحب خرائط المدخلات إلى قنواته.",
),
("No outputs yet: add one above, then drag input maps onto its channels.", "لا توجد مخرجات بعد: أضف مخرجاً بالأعلى، ثم اسحب خرائط المدخلات إلى قنواته."),
("No padding (passthrough)", "بدون حشو (تمرير مباشر)"),
("Noise amount", "كمية الضوضاء"),
("Noise scale", "مقياس الضوضاء"),
@@ -577,10 +529,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Off", "معطل"),
("Offset right", "إزاحة لليمين"),
("Offset up", "إزاحة لأعلى"),
(
"Offsets the textures by the height channel, at the height to normal strength",
"يزيح الخامات وفق قناة الارتفاع، بقوة تحويل الارتفاع إلى ناظم",
),
("Offsets the textures by the height channel, at the height to normal strength", "يزيح الخامات وفق قناة الارتفاع، بقوة تحويل الارتفاع إلى ناظم"),
("On", "مفعل"),
("One color per mesh part.", "لون واحد لكل جزء من المجسم."),
("Opacity", "العتامة"),
@@ -620,10 +569,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Painting", "الرسم"),
("Pan", "تحريك العرض (Pan)"),
("Parallax occlusion (height channel)", "إزاحة المنظور (قناة الارتفاع)"),
(
"Partial mask values follow the layer's height: high parts show first",
"قيم القناع الجزئية تتبع ارتفاع الطبقة: تظهر الأجزاء المرتفعة أولاً",
),
("Partial mask values follow the layer's height: high parts show first", "قيم القناع الجزئية تتبع ارتفاع الطبقة: تظهر الأجزاء المرتفعة أولاً"),
("Particle brush (slides down the surface)", "فرشاة الجسيمات (تنزلق على السطح)"),
("Particle brush: particles slide down the surface", "فرشاة الجسيمات: تنزلق الجسيمات على السطح"),
("Particles", "جسيمات"),
@@ -631,14 +577,8 @@ pub const TABLE: &[(&str, &str)] = &[
("Paste as instance", "لصق كنسخة مرتبطة (Instance)"),
("Paste layer(s)", "لصق الطبقة (الطبقات)"),
("Path", "مسار"),
(
"Path trace on the processor instead of the graphics card (slower)",
"تتبع المسار على المعالج بدلاً من بطاقة الرسوميات (أبطأ)",
),
(
"Path: click adds a point, drag moves it, Enter applies, Esc cancels",
"المسار: النقر يضيف نقطة، والسحب يحركها، وEnter يطبق، وEsc يلغي",
),
("Path trace on the processor instead of the graphics card (slower)", "تتبع المسار على المعالج بدلاً من بطاقة الرسوميات (أبطأ)"),
("Path: click adds a point, drag moves it, Enter applies, Esc cancels", "المسار: النقر يضيف نقطة، والسحب يحركها، وEnter يطبق، وEsc يلغي"),
("Pattern scale", "مقياس النمط"),
("Perlin noise", "ضوضاء بيرلن (Perlin)"),
("Pick focus in the viewport", "اختر نقطة التركيز في منفذ العرض"),
@@ -700,10 +640,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Rendering, path traced", "التصيير، بتتبع المسار"),
("Replace", "استبدال"),
("Replace Color", "استبدال اللون"),
(
"Replace the selected layer's mask with this smart mask (or drag it onto a layer)",
"استبدال قناع الطبقة المحددة بهذا القناع الذكي (أو اسحبه إلى طبقة)",
),
("Replace the selected layer's mask with this smart mask (or drag it onto a layer)", "استبدال قناع الطبقة المحددة بهذا القناع الذكي (أو اسحبه إلى طبقة)"),
("Replacement color", "لون الاستبدال"),
("Report a bug...", "الإبلاغ عن خطأ..."),
("Rescan the library folder", "إعادة فحص مجلد المكتبة"),
@@ -731,10 +668,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Save view as camera", "حفظ المنظور ككاميرا"),
("Saved UI layout {path}", "تم حفظ تخطيط الواجهة {path}"),
("Saved {path}", "تم الحفظ في {path}"),
(
"Saving UI layouts to files is available in the desktop app",
"حفظ تخطيطات الواجهة إلى ملفات متاح في تطبيق سطح المكتب",
),
("Saving UI layouts to files is available in the desktop app", "حفظ تخطيطات الواجهة إلى ملفات متاح في تطبيق سطح المكتب"),
("Scale", "المقياس"),
("Scale / tiling", "المقياس / التكرار"),
("Scatter color", "لون التشتت"),
@@ -814,10 +748,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Symmetry (Y)", "تناظر (Y)"),
("Tangent | Wrap", "مماس | التفاف"),
("Tangent-space normals of the high definition meshes.", "نواظم فضاء المماس للمجسمات عالية الدقة."),
(
"Temporal anti-aliasing (refines the 3D view while it is still)",
"تنعيم حواف زمني (يحسّن العرض ثلاثي الأبعاد أثناء ثباته)",
),
("Temporal anti-aliasing (refines the 3D view while it is still)", "تنعيم حواف زمني (يحسّن العرض ثلاثي الأبعاد أثناء ثباته)"),
("Texture Set List", "قائمة مجموعات الخامات"),
("Texture Set Settings", "إعدادات مجموعة الخامات"),
("Texture resolution", "دقة الخامة"),
@@ -830,10 +761,7 @@ pub const TABLE: &[(&str, &str)] = &[
("TextureCraft project or mesh", "مشروع أو مجسم TextureCraft"),
("Textures", "الخامات"),
("Textures embedded; for game engines and most viewers", "الخامات مدمجة؛ لمحركات الألعاب ومعظم برامج العرض"),
(
"Textures packaged; for USD tools and AR Quick Look",
"الخامات محزومة؛ لأدوات USD وميزة المعاينة السريعة للواقع المعزز",
),
("Textures packaged; for USD tools and AR Quick Look", "الخامات محزومة؛ لأدوات USD وميزة المعاينة السريعة للواقع المعزز"),
("The GPU couldn't render this scene: {error}", "تعذر على معالج الرسوميات (GPU) تصيير هذا المشهد: {error}"),
("The bake worker stopped", "توقف عامل الخبز"),
("The eraser removes paint from the enabled channels.", "تزيل الممحاة الطلاء من القنوات الممكنة."),
@@ -859,10 +787,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Tri-planar projection", "إسقاط ثلاثي المستويات (Tri-planar)"),
("Triangle fill", "تعبئة مثلث"),
("UDIM plane", "مستوي UDIM"),
(
"UDIM tiles painted by this texture set, each at the set's size",
"بلاطات UDIM المرسومة بمجموعة الخامات هذه، كل منها بحجم المجموعة",
),
("UDIM tiles painted by this texture set, each at the set's size", "بلاطات UDIM المرسومة بمجموعة الخامات هذه، كل منها بحجم المجموعة"),
("UI layout", "تخطيط الواجهة"),
("UI layout: {error}", "تخطيط الواجهة: {error}"),
("UI layouts", "تخطيطات الواجهة"),
@@ -877,19 +802,10 @@ pub const TABLE: &[(&str, &str)] = &[
("UV tiles (UDIM)", "بلاطات UV (UDIM)"),
("Undo", "تراجع"),
("Uniform value", "قيمة موحدة"),
(
"Use an equirectangular .hdr or .exr image as the environment",
"استخدم صورة .hdr أو .exr متساوية المستطيلات كبيئة",
),
(
"Use as the brush alpha (or drag it onto the viewport or brush properties)",
"استخدم كألفا للفرشاة (أو اسحبها إلى منفذ العرض أو خصائص الفرشاة)",
),
("Use an equirectangular .hdr or .exr image as the environment", "استخدم صورة .hdr أو .exr متساوية المستطيلات كبيئة"),
("Use as the brush alpha (or drag it onto the viewport or brush properties)", "استخدم كألفا للفرشاة (أو اسحبها إلى منفذ العرض أو خصائص الفرشاة)"),
("Use low poly mesh as high poly mesh", "استخدام المجسم منخفض الدقة كمجسم عالي الدقة"),
(
"Use the control channel or `texturecraft-cli render` for screenshots",
"استخدم قناة التحكم أو الأمر `texturecraft-cli render` لالتقاط لقطات الشاشة",
),
("Use the control channel or `texturecraft-cli render` for screenshots", "استخدم قناة التحكم أو الأمر `texturecraft-cli render` لالتقاط لقطات الشاشة"),
("Value", "القيمة"),
("Version {version}", "الإصدار {version}"),
("Version: {version} ({gpu})", "الإصدار: {version} ({gpu})"),
@@ -908,24 +824,15 @@ pub const TABLE: &[(&str, &str)] = &[
),
("Wheel / Alt + RMB drag", "العجلة / سحب بـ Alt + زر الفأرة الأيمن"),
("White", "أبيض"),
(
"White where the surface faces the direction, black where it faces away.",
"أبيض حيث يواجه السطح الاتجاه، وأسود حيث يتجه بعيداً عنه.",
),
("White where the surface faces the direction, black where it faces away.", "أبيض حيث يواجه السطح الاتجاه، وأسود حيث يتجه بعيداً عنه."),
("Width", "العرض"),
("Width (texels at 2K)", "العرض (تكسل بدقة 2K)"),
("Window", "نافذة"),
("Wood grain", "حبيبات الخشب"),
(
"Works in texture space, like the blur: it does not cross UV seams.",
"يعمل في فضاء الخامات، مثل التمويه: لا يعبر درزات UV.",
),
("Works in texture space, like the blur: it does not cross UV seams.", "يعمل في فضاء الخامات، مثل التمويه: لا يعبر درزات UV."),
("World space direction", "اتجاه الفضاء العالمي"),
("World space normal", "ناظم الفضاء العالمي"),
(
"World-space normals of the high poly (or the low poly).",
"نواظم الفضاء العالمي للمجسم عالي الدقة (أو منخفض الدقة).",
),
("World-space normals of the high poly (or the low poly).", "نواظم الفضاء العالمي للمجسم عالي الدقة (أو منخفض الدقة)."),
("Yellow / blue", "أصفر / أزرق"),
("Zoom", "تكبير/تصغير"),
("a missing layer", "طبقة مفقودة"),
@@ -969,10 +876,7 @@ pub const TABLE: &[(&str, &str)] = &[
"{n} control points. Click the mesh (or the 2D view) to add points and drag them to adjust; click the first point to close the path. Enter paints it with the brush (a closed, filled path fills its inside), Esc cancels.",
"{n} نقاط تحكم. انقر على المجسم (أو العرض ثنائي الأبعاد) لإضافة نقاط واسحبها للضبط؛ وانقر على النقطة الأولى لإغلاق المسار. مفتاح Enter يرسمه بالفرشاة (المسار المغلق والمملوء يملأ داخله)، وEsc يلغي.",
),
(
"{n} items share a shortcut; the first one listed wins.",
"{n} عناصر تشترك في نفس الاختصار؛ العنصر الأول المدرج له الأولوية.",
),
("{n} items share a shortcut; the first one listed wins.", "{n} عناصر تشترك في نفس الاختصار؛ العنصر الأول المدرج له الأولوية."),
("{pattern} (scale {scale}, seed {seed})", "{pattern} (المقياس {scale}، البذرة {seed})"),
("Template name", "اسم القالب"),
("Save current project as template", "حفظ المشروع الحالي كقالب"),
@@ -983,10 +887,7 @@ pub const TABLE: &[(&str, &str)] = &[
("Ignore backface", "تجاهل الوجه الخلفي"),
("Self occlusion", "انسداد ذاتي"),
("Only same mesh name", "نفس اسم المجسم فقط"),
(
"Bent normal rays follow the ambient occlusion's occluder settings.",
"أشعة النواظم المنحنية تتبع إعدادات حاجب الانسداد المحيطي.",
),
("Bent normal rays follow the ambient occlusion's occluder settings.", "أشعة النواظم المنحنية تتبع إعدادات حاجب الانسداد المحيطي."),
("Sampling radius", "نصف قطر العينات"),
("0 picks a radius from the output size.", "0 يختار نصف القطر تلقائياً من حجم المخرج."),
("Encoding", "الترميز"),
@@ -995,18 +896,12 @@ pub const TABLE: &[(&str, &str)] = &[
("Normalization", "تسوية (Normalization)"),
("Bounding box", "المربع المحيط"),
("Bounding sphere", "الكرة المحيطة"),
(
"Position normalized to the low poly's bounding box or sphere.",
"الموضع مُسوّى بالنسبة للمربع أو الكرة المحيطة للمجسم منخفض الدقة.",
),
("Position normalized to the low poly's bounding box or sphere.", "الموضع مُسوّى بالنسبة للمربع أو الكرة المحيطة للمجسم منخفض الدقة."),
(
"Base colors (textures, factors) and vertex colors of the high definition meshes.",
"الألوان الأساسية (الخامات، المعاملات) وألوان الرؤوس للمجسمات عالية الدقة.",
),
(
"White where the high poly covers the low poly, times its alpha.",
"أبيض حيث يغطي المجسم عالي الدقة المجسم منخفض الدقة، مضروباً في قيمة ألفا.",
),
("White where the high poly covers the low poly, times its alpha.", "أبيض حيث يغطي المجسم عالي الدقة المجسم منخفض الدقة، مضروباً في قيمة ألفا."),
("Brightness", "السطوع"),
("Dark", "داكن"),
("Medium dark", "متوسط الدكنة"),
+2 -2
View File
@@ -102,8 +102,8 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA
- **Dockable, tabbed and floating panels**, saved layouts, and panels that reopen where you closed
them.
- A **shortcut editor** with conflict detection, and every shortcut shown in its tooltip.
- **9 languages:** English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese and
Korean, switchable live.
- **10 languages:** English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese,
Korean and Arabic, switchable live.
- **In the browser:** the same app compiled to WebAssembly, on WebGPU or WebGL2, with touch
navigation and project open, save and download.
+10 -8
View File
@@ -23,7 +23,7 @@ generator, filter and brush alpha names (**KEYS** strings, counted by the
| Simplified Chinese | `zh-Hans` | KEYS (100%) | yes | CJK glyphs: craft-fonts (Noto Sans CJK SC) or system fonts on desktop; see below | no | full | 2 h (review) |
| Spanish | `es` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
| Hindi | `hi` | 0 | no | Devanagari shaping: not yet (egui has no complex shaping) | no | none | 12 h |
| Arabic | `ar` | KEYS (100%) | yes | Arabic script / RTL layout & shaping | yes | full | 0 h |
| Arabic | `ar` | KEYS (100%) | yes | Arabic glyphs: craft-fonts (Noto Sans Arabic) or system fonts on desktop; egui shapes the text and orders it right to left (panels keep the left-to-right layout) | yes | full | 0 h |
| French | `fr` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
| Portuguese (Brazil) | `pt-BR` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |
| Indonesian | `id` | 0 | no | Latin | no | none | 3 h |
@@ -38,22 +38,24 @@ user content (layer, texture set, project names), file format and technical name
RGB, OpenGL, DirectX), and error details that come from the engine (shown after a translated
"Couldn't …:" prefix).
## Fonts for Chinese, Japanese and Korean
## Fonts for Chinese, Japanese, Korean and Arabic
egui's built-in fonts have no CJK glyphs. `crates/ui-egui/src/fonts.rs` adds fallbacks after the
egui's built-in fonts have no CJK or Arabic glyphs. `crates/ui-egui/src/fonts.rs` adds fallbacks after the
app's own fonts (Latin text and row heights keep the default font), loading them only when the
UI language needs them or the language picker shows every language's own name:
1. **craft-fonts** ([storytold/craft-fonts](https://github.com/storytold/craft-fonts)), embedded at
build time when `CRAFT_FONTS_DIR` points at a checkout (`crates/ui-egui/build.rs`, the recipe in
craft-fonts' `docs/integration.md`; `CRAFT_FONTS_REQUIRED=1` makes it mandatory for releases).
Desktop builds embed BIZ UDPGothic Regular (Japanese) and Noto Sans CJK SC Regular (Simplified
Chinese); the web build embeds only BIZ UDPGothic (about 4.5 MB of the download).
Desktop builds embed BIZ UDPGothic Regular (Japanese), Noto Sans CJK SC Regular (Simplified
Chinese) and Noto Sans Arabic Regular; the web build embeds BIZ UDPGothic (about 4.5 MB of the
download) and Noto Sans Arabic (0.8 MB).
2. **System fonts** on desktop: Yu Gothic / Meiryo, Microsoft YaHei / SimSun and Malgun Gothic on
Windows; Hiragino, PingFang / STHeiti and Apple SD Gothic Neo on macOS; Noto Sans CJK, WenQuanYi,
Droid Sans Fallback and Nanum Gothic on Linux and FreeBSD.
Droid Sans Fallback and Nanum Gothic on Linux and FreeBSD. Arabic: Segoe UI / Tahoma / Arial on
Windows, SF Arabic / Geeza Pro on macOS, Noto Sans Arabic or DejaVu Sans on Linux and FreeBSD.
**Web limitation:** a browser page can't read system fonts, so the web build shows CJK text only
with the fonts it embeds: Japanese (and most shared Han characters) when built with craft-fonts,
none without it. A language no available font can draw appears in the picker under its English
with the fonts it embeds: Japanese (and most shared Han characters) and Arabic when built with
craft-fonts, none without it. A language no available font can draw appears in the picker under its English
name and can't be selected.