mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 02:03:02 +00:00
Type: editing type set in a missing font asks to confirm first
A Type tool click, or a Selection or Direct Selection double-click, on type whose story is drawn in a font that isn't available as named (a missing family, or a style its family lacks) now opens a question that names those fonts instead of starting to edit. OK starts editing with the caret where the type was clicked; Cancel leaves the document, its undo history and the selection as they were. Each new edit asks again; a click within the type being edited, or in another frame of its story, does not. The fonts the type names are not changed. The check reads only the clicked story's runs. As in text.missingFonts, it leaves out CSS generic families and names over 256 bytes; it also skips inline graphics and empty runs. The CSS generic family list moves to vectorcraft-text so both share it. The question is the missingFontEdit dialog, answered through the Type tool's missingFontEdit option.
This commit is contained in:
@@ -19,23 +19,6 @@ use crate::DocState;
|
||||
const MAX_FONTS: usize = 1_000;
|
||||
/// The longest family or style name listed or given (bytes).
|
||||
const MAX_NAME: usize = 256;
|
||||
/// The CSS generic font families (CSS Fonts Module Level 4), which SVG and HTML files name in place
|
||||
/// of a font and no font file provides; compared in any ASCII case. The list leaves out
|
||||
/// `fangsong`, which is also the family name of a Chinese font (FangSong).
|
||||
const GENERIC_FAMILIES: &[&str] = &[
|
||||
"serif",
|
||||
"sans-serif",
|
||||
"monospace",
|
||||
"cursive",
|
||||
"fantasy",
|
||||
"system-ui",
|
||||
"ui-serif",
|
||||
"ui-sans-serif",
|
||||
"ui-monospace",
|
||||
"ui-rounded",
|
||||
"math",
|
||||
"emoji",
|
||||
];
|
||||
/// The longest folder path given (bytes).
|
||||
const MAX_PATH: usize = 4096;
|
||||
/// The most files one `text.addFontFiles` copies: as many as a search keeps.
|
||||
@@ -105,10 +88,10 @@ pub struct MissingFont {
|
||||
|
||||
/// The fonts the type of `d` uses, in its layers, symbols and patterns, opacity masks included (a composite font's parts, those
|
||||
/// its characters are drawn in, in place of its name), that aren't available as named (sorted by family and style, each once whatever version its type names; at most 1000). CSS generic families such as `sans-serif`
|
||||
/// ([`GENERIC_FAMILIES`]) and names longer than 256 bytes are left out.
|
||||
/// ([`vectorcraft_text::GENERIC_FAMILIES`]) and names longer than 256 bytes are left out.
|
||||
pub fn missing_fonts(d: &Document) -> Vec<MissingFont> {
|
||||
let db = FontDb::global();
|
||||
let generic = |family: &str| GENERIC_FAMILIES.iter().any(|g| g.eq_ignore_ascii_case(family.trim()));
|
||||
let generic = vectorcraft_text::is_generic_family;
|
||||
let mut used: Vec<(String, String)> = super::fonts::used_fonts(d).into_iter().map(|(family, style, _)| (family, style)).collect();
|
||||
// Sorted by family and style: the versions type names of one face are neighbors.
|
||||
used.dedup();
|
||||
|
||||
@@ -74,7 +74,7 @@ pub use stylistic_sets::StylisticSet;
|
||||
use traits::Alias;
|
||||
#[cfg(test)]
|
||||
use traits::{FaceKeys, face_names};
|
||||
pub use traits::{FontClass, FontLikeness, FontMatch, FontTraits};
|
||||
pub use traits::{FontClass, FontLikeness, FontMatch, FontTraits, GENERIC_FAMILIES, is_generic_family};
|
||||
#[cfg(test)]
|
||||
pub(crate) use traits::{alias_lists, face_styles, on_faces_published};
|
||||
pub use wanted::{WantedFont, WantedFonts};
|
||||
|
||||
@@ -433,6 +433,29 @@ impl FontMatch {
|
||||
}
|
||||
}
|
||||
|
||||
/// The CSS generic font families (CSS Fonts Module Level 4), which SVG and HTML files name in place
|
||||
/// of a font and no font file provides; compared in any ASCII case ([`is_generic_family`]). The
|
||||
/// list leaves out `fangsong`, which is also the family name of a Chinese font (FangSong).
|
||||
pub const GENERIC_FAMILIES: &[&str] = &[
|
||||
"serif",
|
||||
"sans-serif",
|
||||
"monospace",
|
||||
"cursive",
|
||||
"fantasy",
|
||||
"system-ui",
|
||||
"ui-serif",
|
||||
"ui-sans-serif",
|
||||
"ui-monospace",
|
||||
"ui-rounded",
|
||||
"math",
|
||||
"emoji",
|
||||
];
|
||||
|
||||
/// Whether `family` (surrounding spaces ignored) is one of the [`GENERIC_FAMILIES`], in any ASCII case.
|
||||
pub fn is_generic_family(family: &str) -> bool {
|
||||
GENERIC_FAMILIES.iter().any(|g| g.eq_ignore_ascii_case(family.trim()))
|
||||
}
|
||||
|
||||
/// A face's (family, style) names.
|
||||
pub(super) fn face_names(f: &skrifa::FontRef<'_>) -> Option<(String, String)> {
|
||||
let family = name(f, &[StringId::TYPOGRAPHIC_FAMILY_NAME, StringId::FAMILY_NAME])?;
|
||||
|
||||
@@ -41,10 +41,10 @@ pub use features::{
|
||||
EXTRA_FEATURES, LIGATURE_TRACKING_LIMITS, MAX_FEATURE_VALUE, MAX_STYLE_FEATURES, OtFeatures, explicit_ligatures, ligatures_suppressed_by,
|
||||
};
|
||||
pub use fontdb::{
|
||||
CompositeCoverage, FALLBACK_FAMILY, FontClass, FontDb, FontFace, FontLikeness, FontMatch, FontTraits, GlyphAlternate, GlyphCategory,
|
||||
GlyphCategoryKind, GlyphOrigin, IcfMargins, JoiningPosition, LentCompositeFonts, PlatformFontFiles, RECENTLY_ADDED_WITHIN, RecentlyAdded,
|
||||
StylisticSet, Substitution, SubstitutionKind, WantedFont, WantedFonts, app_font_dir, is_font_file, is_suitcase, set_app_font_dir,
|
||||
set_platform_font_files, set_user_font_dirs, set_user_font_dirs_confined, style_weight, system_font_dirs, user_font_dirs,
|
||||
CompositeCoverage, FALLBACK_FAMILY, FontClass, FontDb, FontFace, FontLikeness, FontMatch, FontTraits, GENERIC_FAMILIES, GlyphAlternate,
|
||||
GlyphCategory, GlyphCategoryKind, GlyphOrigin, IcfMargins, JoiningPosition, LentCompositeFonts, PlatformFontFiles, RECENTLY_ADDED_WITHIN,
|
||||
RecentlyAdded, StylisticSet, Substitution, SubstitutionKind, WantedFont, WantedFonts, app_font_dir, is_font_file, is_generic_family, is_suitcase,
|
||||
set_app_font_dir, set_platform_font_files, set_user_font_dirs, set_user_font_dirs_confined, style_weight, system_font_dirs, user_font_dirs,
|
||||
};
|
||||
pub use hyphen::{hyphenation_exceptions, set_hyphenation_exceptions};
|
||||
pub use layout::{envelope_ink, layout_inputs, register_envelope_ink};
|
||||
|
||||
@@ -43,10 +43,13 @@ use vectorcraft_text::{FontDb, TextLayout, edit};
|
||||
use crate::guides::DrawSnap;
|
||||
use crate::{Action, Cursor, ImeSurrounding, Mods, Overlay, PointerEvent, PointerKind, SurroundingUnit, Tool, ToolContext, ToolKey};
|
||||
|
||||
mod missing;
|
||||
mod plain;
|
||||
mod ports;
|
||||
mod tool;
|
||||
|
||||
pub use missing::MISSING_FONT_EDIT;
|
||||
use missing::PendingEdit;
|
||||
#[cfg(test)]
|
||||
use plain::char_range_to_bytes;
|
||||
use plain::common_affixes;
|
||||
@@ -219,6 +222,8 @@ pub struct TypeTool {
|
||||
stepped: bool,
|
||||
/// The state at the start of each `command.batch` still running, innermost last.
|
||||
batches: Vec<HistoryState>,
|
||||
/// The edit of type set in fonts that aren't available whose question is open ([`missing`]).
|
||||
pending_edit: Option<PendingEdit>,
|
||||
cache: Mutex<Option<CachedLayout>>,
|
||||
}
|
||||
|
||||
@@ -781,18 +786,68 @@ impl TypeTool {
|
||||
|
||||
/// Start editing the type under `p` with the caret there → the actions (ending the previous
|
||||
/// edit, selecting the type); None when no type is under `p`. A click among the characters
|
||||
/// edits them, whatever Type Object Selection by Path Only says.
|
||||
/// edits them, whatever Type Object Selection by Path Only says. When the story of that type is
|
||||
/// drawn in a font that isn't available as named and is not the story being edited, nothing
|
||||
/// starts yet: the action asks the UI to open the [`MISSING_FONT_EDIT`] question, and OK starts
|
||||
/// the edit ([`Self::resume_edit`]).
|
||||
fn edit_at(&mut self, cx: &ToolContext, p: Point) -> Option<Vec<Action>> {
|
||||
self.pending_edit = None;
|
||||
let h = hit_test(cx.doc, p, vectorcraft_doc::hit::HitOptions { type_path_only: false, ..cx.hit_options() })?;
|
||||
let Some(NodeKind::Text(t)) = cx.doc.node(h.leaf).map(|n| &n.kind) else { return None };
|
||||
let lay = self.layout(t);
|
||||
let byte = vectorcraft_text::hit_byte(&lay, t.xf.inverse() * p);
|
||||
let same_story = self.editing.is_some_and(|e| cx.doc.story_of(e).contains(&h.leaf));
|
||||
if !same_story {
|
||||
let fonts = missing::unavailable_fonts(cx.doc, h.leaf);
|
||||
if !fonts.0.is_empty() {
|
||||
let token = next_edit_session();
|
||||
self.pending_edit = Some(PendingEdit { token, revision: cx.revision, id: h.leaf, byte, accepted: false });
|
||||
self.clicks = (None, 0);
|
||||
return Some(vec![Action::Dialog(MISSING_FONT_EDIT.into(), missing::question(token, h.leaf, &fonts))]);
|
||||
}
|
||||
}
|
||||
Some(self.begin_edit(cx, h.leaf, byte, p))
|
||||
}
|
||||
|
||||
/// End the previous edit and edit type `id` with the caret at `byte` (clicked at `p`), selecting
|
||||
/// it → the actions.
|
||||
fn begin_edit(&mut self, cx: &ToolContext, id: NodeId, byte: usize, p: Point) -> Vec<Action> {
|
||||
let mut out = self.finish(cx);
|
||||
self.start_editing(h.leaf, byte);
|
||||
self.start_editing(id, byte);
|
||||
self.remember(cx);
|
||||
self.clicks = (Some(p), 1);
|
||||
out.push(Action::Exec("select.set".into(), json!({"ids": [h.leaf.0]})));
|
||||
Some(out)
|
||||
out.push(Action::Exec("select.set".into(), json!({"ids": [id.0]})));
|
||||
out
|
||||
}
|
||||
|
||||
/// The answer to the [`MISSING_FONT_EDIT`] question whose token is `token`: OK (`ok`) lets the
|
||||
/// next [`Tool::poll`] start the edit, Cancel forgets it. An answer to another question is
|
||||
/// ignored.
|
||||
fn answer_edit(&mut self, token: u64, ok: bool) {
|
||||
let Some(e) = self.pending_edit.as_mut().filter(|e| e.token == token) else { return };
|
||||
if ok {
|
||||
e.accepted = true;
|
||||
} else {
|
||||
self.pending_edit = None;
|
||||
}
|
||||
}
|
||||
|
||||
/// Start the edit OK accepted: the caret goes where the type was clicked. Nothing starts when
|
||||
/// the document changed since the question, or the type is gone.
|
||||
fn resume_edit(&mut self, cx: &ToolContext) -> Vec<Action> {
|
||||
let Some(e) = self.pending_edit.take_if(|e| e.accepted) else { return vec![] };
|
||||
if e.revision != cx.revision {
|
||||
return vec![];
|
||||
}
|
||||
let Some(t) = Self::text(cx, e.id) else { return vec![] };
|
||||
let text = t.plain_text();
|
||||
let mut byte = e.byte.min(text.len());
|
||||
while !text.is_char_boundary(byte) {
|
||||
byte -= 1;
|
||||
}
|
||||
let out = self.begin_edit(cx, e.id, byte, Point::ZERO);
|
||||
self.clicks = (None, 0);
|
||||
out
|
||||
}
|
||||
|
||||
/// The button released after a press at `start` (new type goes at `at`). While type is being
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
//! Type set in fonts that aren't available as named asks before it is edited: a click or a
|
||||
//! double-click that would start editing it opens a question ([`MISSING_FONT_EDIT`]) instead, and
|
||||
//! editing starts at the clicked place only after OK (the tool option `missingFontEdit`). The
|
||||
//! fonts are those `text.missingFonts` reads, for the story of the type clicked only.
|
||||
|
||||
use std::collections::BTreeSet;
|
||||
|
||||
use serde_json::{Value, json};
|
||||
use vectorcraft_doc::{Document, NodeId, NodeKind, TextRun};
|
||||
use vectorcraft_text::{FontDb, FontMatch};
|
||||
|
||||
/// The dialog kind of the question, with the fields `token`, `id`, `missing` and `style` (lists of
|
||||
/// "family style" names) and `more` (how many more fonts the lists leave out).
|
||||
pub const MISSING_FONT_EDIT: &str = "missingFontEdit";
|
||||
|
||||
/// The most fonts the question names.
|
||||
const LISTED: usize = 8;
|
||||
|
||||
/// The longest family or style name checked (bytes), as `text.missingFonts` reads them.
|
||||
const MAX_NAME: usize = 256;
|
||||
|
||||
/// An edit of type set in fonts that aren't available, waiting for the answer to its question.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub(super) struct PendingEdit {
|
||||
/// The question's token, which its answer names.
|
||||
pub token: u64,
|
||||
/// The document (its uid) and its revision when the question was asked: an answer to a
|
||||
/// document since changed starts no editing.
|
||||
pub revision: (u64, u64),
|
||||
/// The type clicked, and the caret's byte offset there.
|
||||
pub id: NodeId,
|
||||
pub byte: usize,
|
||||
/// OK was chosen: the next [`crate::Tool::poll`] starts editing.
|
||||
pub accepted: bool,
|
||||
}
|
||||
|
||||
/// The fonts (family, style) run `r` is drawn in: its own, or, set in a composite font, those of
|
||||
/// the parts its characters fall in. An inline graphic and an empty run draw no glyphs.
|
||||
fn run_fonts(db: &FontDb, r: &TextRun) -> Vec<(String, String)> {
|
||||
if r.inline.is_some() || r.text.is_empty() {
|
||||
return vec![];
|
||||
}
|
||||
db.composite_fonts_for(&r.style.font_family, &r.text).unwrap_or_else(|| vec![(r.style.font_family.clone(), r.style.font_style.clone())])
|
||||
}
|
||||
|
||||
/// The fonts that the story of type object `id` ([`Document::story_of`]: every frame threaded with
|
||||
/// it) is drawn in and that aren't available as named, each once, in the order first used, with how
|
||||
/// they resolve ([`FontMatch::Missing`] or [`FontMatch::Style`]); at most [`LISTED`], with how many
|
||||
/// more there are. CSS generic families and names longer than 256 bytes are left out, as
|
||||
/// `text.missingFonts` leaves them out.
|
||||
pub(super) fn unavailable_fonts(doc: &Document, id: NodeId) -> (Vec<(String, String, FontMatch)>, usize) {
|
||||
let db = FontDb::global();
|
||||
let mut seen = BTreeSet::new();
|
||||
let mut listed = Vec::new();
|
||||
let mut more = 0;
|
||||
for frame in doc.story_of(id) {
|
||||
let Some(NodeKind::Text(t)) = doc.node(frame).map(|n| &n.kind) else { continue };
|
||||
for (family, style) in t.runs.iter().flat_map(|r| run_fonts(db, r)) {
|
||||
if family.trim().is_empty() || vectorcraft_text::is_generic_family(&family) || family.len() > MAX_NAME || style.len() > MAX_NAME {
|
||||
continue;
|
||||
}
|
||||
if !seen.insert((family.clone(), style.clone())) {
|
||||
continue;
|
||||
}
|
||||
let found = db.resolve(&family, &style).map_or(FontMatch::Missing, |(_, m)| m);
|
||||
if found == FontMatch::Exact {
|
||||
continue;
|
||||
}
|
||||
if listed.len() < LISTED {
|
||||
listed.push((family, style, found));
|
||||
} else {
|
||||
more += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
(listed, more)
|
||||
}
|
||||
|
||||
/// The question's fields for `fonts` ([`unavailable_fonts`]) and the edit `token` of type `id`.
|
||||
pub(super) fn question(token: u64, id: NodeId, (fonts, more): &(Vec<(String, String, FontMatch)>, usize)) -> Value {
|
||||
let names = |m: FontMatch| fonts.iter().filter(|f| f.2 == m).map(|(family, style, _)| format!("{family} {style}")).collect::<Vec<_>>();
|
||||
json!({"token": token, "id": id.0, "missing": names(FontMatch::Missing), "style": names(FontMatch::Style), "more": more})
|
||||
}
|
||||
@@ -1897,3 +1897,157 @@ fn soft_return_in_a_list_item_keeps_tab_within_the_paragraph() {
|
||||
let acts = key(&mut tool, &d, ToolKey::Tab, Mods::default());
|
||||
assert!(acts.iter().any(|a| matches!(a, Action::Exec(cmd, p) if cmd == "text.setFormat" && p["listLevel"] == 2)));
|
||||
}
|
||||
|
||||
/// A family no computer has.
|
||||
const NO_SUCH_FAMILY: &str = "Missing Test Family 7258";
|
||||
|
||||
/// Point type at (x, 100) whose runs are `runs` (text, family, style).
|
||||
fn add_styled_text(d: &mut Document, x: f64, runs: &[(&str, &str, &str)]) -> NodeId {
|
||||
let id = d.alloc_id();
|
||||
let style =
|
||||
|family: &str, font_style: &str| CharStyle { size: 20.0, font_family: family.into(), font_style: font_style.into(), ..Default::default() };
|
||||
let mut t = TextObject::point(Point::new(x, 100.0), "", style(runs[0].1, runs[0].2));
|
||||
t.runs = runs.iter().map(|(text, family, font_style)| TextRun::new(*text, style(family, font_style))).collect();
|
||||
d.insert(Some(d.layers[0].id), 0, Node::new(id, NodeKind::Text(Box::new(t)))).unwrap();
|
||||
id
|
||||
}
|
||||
|
||||
/// Where the caret before byte `b` of type `id` is drawn (document space).
|
||||
fn caret_at(c: &ToolContext, id: NodeId, b: usize) -> Point {
|
||||
let t = TypeTool::text(c, id).unwrap();
|
||||
let lay = vectorcraft_text::layout(FontDb::global(), t);
|
||||
let (a, bb) = vectorcraft_text::caret_position(&lay, b);
|
||||
let at = t.xf * a.midpoint(bb);
|
||||
Point::new(at.x + 0.1, at.y)
|
||||
}
|
||||
|
||||
/// The question a click asked → its token and fields.
|
||||
fn asked(acts: &[Action]) -> (u64, Value) {
|
||||
match acts {
|
||||
[Action::Dialog(kind, p)] if kind == MISSING_FONT_EDIT => (p["token"].as_u64().unwrap(), p.clone()),
|
||||
_ => panic!("expected only the missing-font question: {acts:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
/// A click on type set in a family that isn't available asks first and starts no edit; OK starts
|
||||
/// it with the caret where the type was clicked, and the font the type names stays as it is.
|
||||
#[test]
|
||||
fn a_click_on_type_in_a_missing_font_asks_before_editing() {
|
||||
let mut d = Document::new(500.0, 500.0);
|
||||
let id = add_styled_text(&mut d, 100.0, &[("Hello", NO_SUCH_FAMILY, "Regular")]);
|
||||
let mut tool = TypeTool::new("type");
|
||||
let (sel, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &sel, &p);
|
||||
let at = caret_at(&c, id, 3);
|
||||
let (token, q) = asked(&click(&mut tool, &c, at.x, at.y));
|
||||
assert_eq!(
|
||||
(q["id"].as_u64(), &q["missing"], &q["style"], &q["more"]),
|
||||
(Some(id.0), &json!([format!("{NO_SUCH_FAMILY} Regular")]), &json!([]), &json!(0))
|
||||
);
|
||||
assert_eq!(tool.editing, None);
|
||||
assert!(!tool.waiting());
|
||||
// OK: the next poll starts the edit at the clicked character.
|
||||
tool.set_option("missingFontEdit", &json!({"token": token, "ok": true}));
|
||||
assert!(tool.waiting());
|
||||
let acts = tool.poll(&c, false);
|
||||
assert_eq!(acts, vec![Action::Exec("select.set".into(), json!({"ids": [id.0]}))]);
|
||||
assert_eq!((tool.editing, tool.caret, tool.anchor), (Some(id), 3, 3));
|
||||
assert!(!tool.waiting());
|
||||
let NodeKind::Text(t) = &d.node(id).unwrap().kind else { panic!("text") };
|
||||
assert_eq!(t.runs[0].style.font_family, NO_SUCH_FAMILY);
|
||||
// A click within the type being edited moves the caret without asking again.
|
||||
let at = caret_at(&c, id, 1);
|
||||
let acts = click(&mut tool, &c, at.x, at.y);
|
||||
assert!(!acts.iter().any(|a| matches!(a, Action::Dialog(..))), "{acts:?}");
|
||||
assert_eq!((tool.editing, tool.caret), (Some(id), 1));
|
||||
}
|
||||
|
||||
/// Cancel starts no edit, and the edit in progress on other type goes on; an answer that names
|
||||
/// another question, or one given to a document changed since, starts nothing either.
|
||||
#[test]
|
||||
fn cancel_or_a_stale_answer_starts_no_edit_in_missing_fonts() {
|
||||
let (mut d, first, mut tool) = editing("First");
|
||||
tool.caret = 2;
|
||||
let other = add_styled_text(&mut d, 300.0, &[("Second", NO_SUCH_FAMILY, "Bold")]);
|
||||
let (sel, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &sel, &p);
|
||||
let at = caret_at(&c, other, 2);
|
||||
let (token, _) = asked(&click(&mut tool, &c, at.x, at.y));
|
||||
assert_eq!((tool.editing, tool.caret), (Some(first), 2), "the edit in progress goes on while the question is open");
|
||||
tool.set_option("missingFontEdit", &json!({"token": token + 1, "ok": true}));
|
||||
assert!(!tool.waiting(), "another question's answer");
|
||||
tool.set_option("missingFontEdit", &json!({"token": token, "ok": false}));
|
||||
assert!(tool.poll(&c, false).is_empty());
|
||||
assert_eq!((tool.editing, tool.caret), (Some(first), 2));
|
||||
// OK after the document changed: nothing starts.
|
||||
let (token, _) = asked(&click(&mut tool, &c, at.x, at.y));
|
||||
tool.set_option("missingFontEdit", &json!({"token": token, "ok": true}));
|
||||
let changed = ToolContext { revision: (0, 1), ..cx(&d, &sel, &p) };
|
||||
assert!(tool.poll(&changed, false).is_empty());
|
||||
assert_eq!(tool.editing, Some(first));
|
||||
assert!(!tool.waiting());
|
||||
}
|
||||
|
||||
/// Every new edit of such type asks again, after an earlier OK too, and a style the family lacks
|
||||
/// asks as a missing family does; type in available fonts is edited at once.
|
||||
#[test]
|
||||
fn each_new_edit_of_type_in_unavailable_fonts_asks() {
|
||||
let mut d = Document::new(500.0, 500.0);
|
||||
let styled = add_styled_text(&mut d, 100.0, &[("Wide", "Source Sans 3", "Ultra Condensed Oblique 7258")]);
|
||||
let plain = add_styled_text(&mut d, 300.0, &[("Plain", "Source Sans 3", "Regular")]);
|
||||
let mut tool = TypeTool::new("type");
|
||||
let (sel, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &sel, &p);
|
||||
let at = caret_at(&c, styled, 1);
|
||||
let (token, q) = asked(&click(&mut tool, &c, at.x, at.y));
|
||||
assert_eq!((&q["missing"], &q["style"]), (&json!([]), &json!(["Source Sans 3 Ultra Condensed Oblique 7258"])));
|
||||
tool.set_option("missingFontEdit", &json!({"token": token, "ok": true}));
|
||||
tool.poll(&c, false);
|
||||
assert_eq!(tool.editing, Some(styled));
|
||||
// Other type in an available font is edited at once.
|
||||
let to = caret_at(&c, plain, 2);
|
||||
let acts = click(&mut tool, &c, to.x, to.y);
|
||||
assert!(acts.contains(&Action::Exec("select.set".into(), json!({"ids": [plain.0]}))), "{acts:?}");
|
||||
assert_eq!(tool.editing, Some(plain));
|
||||
// Back to the first type: a new edit, so the question comes again.
|
||||
asked(&click(&mut tool, &c, at.x, at.y));
|
||||
assert_eq!(tool.editing, Some(plain));
|
||||
}
|
||||
|
||||
/// The whole story counts: type with one run in a missing font asks even when the click lands in a
|
||||
/// run in an available font, and the question names each font once.
|
||||
#[test]
|
||||
fn a_story_with_one_run_in_a_missing_font_asks() {
|
||||
let mut d = Document::new(500.0, 500.0);
|
||||
let id = add_styled_text(
|
||||
&mut d,
|
||||
100.0,
|
||||
&[("Here ", "Source Sans 3", "Regular"), ("gone ", NO_SUCH_FAMILY, "Regular"), ("again", NO_SUCH_FAMILY, "Regular")],
|
||||
);
|
||||
let mut tool = TypeTool::new("type");
|
||||
let (sel, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &sel, &p);
|
||||
let at = caret_at(&c, id, 1);
|
||||
let (_, q) = asked(&click(&mut tool, &c, at.x, at.y));
|
||||
assert_eq!(q["missing"], json!([format!("{NO_SUCH_FAMILY} Regular")]));
|
||||
assert_eq!(tool.editing, None);
|
||||
}
|
||||
|
||||
/// Type set in a CSS generic family is edited without a question, and a press dropped while the
|
||||
/// question is open leaves the edit in progress as it was.
|
||||
#[test]
|
||||
fn generic_families_and_a_dropped_press_ask_nothing_more() {
|
||||
let mut d = Document::new(500.0, 500.0);
|
||||
let generic = add_styled_text(&mut d, 100.0, &[("Generic", "sans-serif", "Regular")]);
|
||||
let missing = add_styled_text(&mut d, 300.0, &[("Missing", NO_SUCH_FAMILY, "Regular")]);
|
||||
let mut tool = TypeTool::new("type");
|
||||
let (sel, p) = (Selection::default(), paint());
|
||||
let c = cx(&d, &sel, &p);
|
||||
let at = caret_at(&c, generic, 1);
|
||||
let acts = click(&mut tool, &c, at.x, at.y);
|
||||
assert!(acts.contains(&Action::Exec("select.set".into(), json!({"ids": [generic.0]}))), "{acts:?}");
|
||||
let to = caret_at(&c, missing, 1);
|
||||
asked(&tool.pointer(&c, &PointerEvent::new(PointerKind::Down, to.x, to.y)));
|
||||
assert!(tool.drop_press(&c).is_empty());
|
||||
assert_eq!(tool.editing, Some(generic));
|
||||
}
|
||||
|
||||
@@ -73,8 +73,12 @@ impl Tool for TypeTool {
|
||||
}
|
||||
self.clicks = (None, 0);
|
||||
// A press on other type edits it from there, so a drag selects its text at once,
|
||||
// as it does in the type being edited.
|
||||
// as it does in the type being edited. While the question about its fonts is open,
|
||||
// the press does nothing more, and the edit in progress goes on.
|
||||
if let Some(out) = self.edit_at(cx, ev.pos) {
|
||||
if self.pending_edit.is_some() {
|
||||
return out;
|
||||
}
|
||||
self.selecting = true;
|
||||
self.before_press = Some(before);
|
||||
return out;
|
||||
@@ -472,8 +476,16 @@ impl Tool for TypeTool {
|
||||
}
|
||||
fn deactivate(&mut self, cx: &ToolContext) -> Vec<Action> {
|
||||
self.prev_tool = None;
|
||||
self.pending_edit = None;
|
||||
self.finish(cx)
|
||||
}
|
||||
/// OK on the question about type in missing fonts started an edit the next poll begins.
|
||||
fn waiting(&self) -> bool {
|
||||
self.pending_edit.as_ref().is_some_and(|e| e.accepted)
|
||||
}
|
||||
fn poll(&mut self, cx: &ToolContext, _wait: bool) -> Vec<Action> {
|
||||
self.resume_edit(cx)
|
||||
}
|
||||
/// Editing ends when a command takes the text out of the selection (Deselect, another object
|
||||
/// picked in the Layers panel) or removes it. After an Undo that takes back a list typed
|
||||
/// characters started, the caret goes on after the characters, and after its Redo the caret
|
||||
@@ -537,9 +549,15 @@ impl Tool for TypeTool {
|
||||
}
|
||||
}
|
||||
/// `select {start, end}` / `selectAll` / `copy` (with `runs` of the selection) /
|
||||
/// `commitTyping` (the caller commits the engine interaction).
|
||||
/// `commitTyping` (the caller commits the engine interaction) / `missingFontEdit {token, ok}`
|
||||
/// (the answer to the question about type in missing fonts; never a saved setting).
|
||||
fn set_option(&mut self, key: &str, v: &Value) {
|
||||
match key {
|
||||
"missingFontEdit" => {
|
||||
if let (Some(token), Some(ok)) = (v.get("token").and_then(Value::as_u64), v.get("ok").and_then(Value::as_bool)) {
|
||||
self.answer_edit(token, ok);
|
||||
}
|
||||
}
|
||||
// Transient selection transferred between Type and Eyedropper; never a saved setting.
|
||||
"textSelection" => {
|
||||
if let (Some(id), Some(a), Some(b)) = (
|
||||
|
||||
@@ -8661,6 +8661,11 @@ fn retype_all_of_a_copied_type(ime: bool) {
|
||||
frame(&mut app, vec![button(at, pressed, Modifiers::NONE)]);
|
||||
}
|
||||
frame(&mut app, vec![]);
|
||||
// Without Georgia on this computer, the Type tool asks first; OK starts the edit.
|
||||
if app.ui.dialog.as_ref().is_some_and(|d| d.kind == crate::dialogs::confirm::MISSING_FONT_EDIT) {
|
||||
crate::dialogs::confirm(&mut app).unwrap();
|
||||
frame(&mut app, vec![]);
|
||||
}
|
||||
assert_eq!(app.session.tool_options()["editing"], json!(copy));
|
||||
// 3. Select all of its text and type over it.
|
||||
frame(&mut app, vec![key(Key::A, true, Modifiers::COMMAND)]);
|
||||
@@ -8748,6 +8753,65 @@ fn double_clicking_type_with_the_direct_selection_tool_puts_the_caret_there() {
|
||||
assert!(!app.session.tool_wants_text());
|
||||
}
|
||||
|
||||
/// Double-clicking type set in a family that isn't available asks before the Type tool edits it:
|
||||
/// Cancel leaves the document, its undo history and the selection as they were, with nothing
|
||||
/// edited; OK puts the caret where the type was clicked, and typing edits the type, which keeps
|
||||
/// the family it names.
|
||||
#[test]
|
||||
fn double_clicking_type_in_a_missing_font_asks_before_editing() {
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
app.session.execute("file.new", &json!({"width": 400, "height": 300})).unwrap();
|
||||
let params = json!({"x": 100, "y": 150, "text": "Hello world", "size": 24, "font": "Missing Test Family 7258"});
|
||||
let id = app.session.execute("text.create", ¶ms).unwrap()["id"].as_u64().unwrap();
|
||||
app.session.execute("select.none", &json!({})).unwrap();
|
||||
app.select_tool("selection");
|
||||
let ctx = egui::Context::default();
|
||||
let timed = |app: &mut VectorcraftApp, time: f64, events: Vec<egui::Event>| {
|
||||
let screen = egui::Rect::from_min_size(Pos2::ZERO, vec2(800.0, 600.0));
|
||||
let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), time: Some(time), events, ..Default::default() }, |ui| show(app, ui));
|
||||
out.textures_delta.clear();
|
||||
};
|
||||
timed(&mut app, 0.0, vec![]);
|
||||
let xf = Xf::new(app.canvas_rect.unwrap(), app.view().unwrap());
|
||||
let node = |app: &VectorcraftApp| app.session.active().unwrap().doc.node(vectorcraft_doc::NodeId(id)).unwrap().clone();
|
||||
let b = node(&app).geometric_bounds().unwrap();
|
||||
let at = xf.to_screen(b.center());
|
||||
let button = |pressed| egui::Event::PointerButton { pos: at, button: egui::PointerButton::Primary, pressed, modifiers: Default::default() };
|
||||
let double_click = |app: &mut VectorcraftApp, time: f64| {
|
||||
timed(app, time, vec![egui::Event::PointerMoved(at), button(true), button(false), button(true), button(false)]);
|
||||
timed(app, time + 0.1, vec![]);
|
||||
};
|
||||
let asking = |app: &VectorcraftApp| app.ui.dialog.as_ref().filter(|d| d.kind == crate::dialogs::confirm::MISSING_FONT_EDIT).cloned();
|
||||
double_click(&mut app, 1.0);
|
||||
let d = asking(&app).expect("the question about the missing font");
|
||||
assert!(d.str("detail").contains("Missing Test Family 7258 Regular"), "{}", d.str("detail"));
|
||||
assert_eq!(app.session.tool_options()["editing"], json!(null));
|
||||
// Cancel: nothing is edited, and the document, its undo history and the selection stay.
|
||||
let (before, undo, selected) =
|
||||
(node(&app), app.session.doc().unwrap().history.undo.len(), app.session.active().unwrap().selection.objects.clone());
|
||||
crate::dialogs::cancel(&mut app);
|
||||
timed(&mut app, 1.5, vec![]);
|
||||
assert_eq!(app.session.tool_options()["editing"], json!(null));
|
||||
assert!(!app.session.tool_wants_text());
|
||||
assert_eq!(node(&app), before);
|
||||
assert_eq!(app.session.doc().unwrap().history.undo.len(), undo);
|
||||
assert_eq!(app.session.active().unwrap().selection.objects, selected);
|
||||
// A new double-click asks again; OK edits with the caret where the type was clicked.
|
||||
double_click(&mut app, 3.0);
|
||||
assert!(asking(&app).is_some(), "asked again");
|
||||
crate::dialogs::confirm(&mut app).unwrap();
|
||||
timed(&mut app, 3.5, vec![]);
|
||||
assert!(app.ui.dialog.is_none());
|
||||
let o = app.session.tool_options();
|
||||
assert_eq!(o["editing"], json!(id));
|
||||
let caret = o["caret"].as_u64().unwrap();
|
||||
assert!((1..11).contains(&caret), "caret {caret}");
|
||||
app.session.tool_text("X", app.view_info()).unwrap();
|
||||
let NodeKind::Text(t) = &node(&app).kind else { panic!("not text") };
|
||||
assert_eq!(t.plain_text().find('X'), Some(caret as usize), "{}", t.plain_text());
|
||||
assert!(t.runs.iter().all(|r| r.style.font_family == "Missing Test Family 7258"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn escape_while_editing_in_isolation_returns_to_selection_tool_and_keeps_isolation_until_second_escape() {
|
||||
let mut app = VectorcraftApp::new(Session::new(), Default::default());
|
||||
|
||||
@@ -343,6 +343,7 @@ registry! {
|
||||
ReplaceFiles: [confirm::REPLACE_FILES] => confirm::REPLACE_FILES_SPEC,
|
||||
ResetPreferences: [confirm::RESET_PREFS] => confirm::RESET_PREFS_SPEC,
|
||||
ResetActions: [confirm::RESET_ACTIONS] => confirm::RESET_ACTIONS_SPEC,
|
||||
MissingFontEdit: [confirm::MISSING_FONT_EDIT] => confirm::MISSING_FONT_EDIT_SPEC,
|
||||
NewSwatch: [new_swatch::KIND] => new_swatch::SPEC,
|
||||
NewColorGroup: [new_color_group::KIND] => new_color_group::SPEC,
|
||||
GraphData: [graph_data::KIND] => graph_data::SPEC,
|
||||
@@ -699,6 +700,9 @@ pub fn cancel(app: &mut VectorcraftApp) {
|
||||
if d.kind == safe_mode::STOPPED {
|
||||
safe_mode::cancel_stopped(app);
|
||||
}
|
||||
if d.kind == confirm::MISSING_FONT_EDIT {
|
||||
confirm::answer_missing_font_edit(app, &d, false);
|
||||
}
|
||||
// The growth question's Cancel button is its Stop button.
|
||||
if d.kind == script_run::GROWTH_KIND {
|
||||
app.session.script_request_stop();
|
||||
|
||||
@@ -156,6 +156,47 @@ fn reset_actions(app: &mut VectorcraftApp, d: &Dialog) -> Result<Value, String>
|
||||
app.run(crate::panels::actions::RESET, json!({ "mode": mode }))
|
||||
}
|
||||
|
||||
/// The dialog kind of the question a click or double-click asks before it edits type set in fonts
|
||||
/// that aren't available as named ([`ask_missing_font_edit`]). Fields: `message`, `detail`,
|
||||
/// `__token` (the Type tool's edit, which the answer names).
|
||||
pub const MISSING_FONT_EDIT: &str = vectorcraft_tools::text::MISSING_FONT_EDIT;
|
||||
|
||||
pub(super) const MISSING_FONT_EDIT_SPEC: DialogSpec = DialogSpec { confirm: edit_in_missing_fonts, ..SPEC };
|
||||
|
||||
/// Ask whether to edit type whose story is drawn in fonts that aren't available, which the Type
|
||||
/// tool names in `p` (`token`, `missing` and `style`: "family style" names, `more`: how many more
|
||||
/// there are). The detail names each font (family and style, the family's own names, which are
|
||||
/// not translated). OK starts the edit where the type was clicked; Cancel and Escape start nothing.
|
||||
pub(crate) fn ask_missing_font_edit(app: &mut VectorcraftApp, p: &Value) {
|
||||
let names = |k: &str| p.get(k).and_then(Value::as_array).into_iter().flatten().filter_map(Value::as_str).map(str::to_string).collect::<Vec<_>>();
|
||||
let mut fonts = names("missing");
|
||||
fonts.extend(names("style"));
|
||||
if p.get("more").and_then(Value::as_u64).is_some_and(|n| n > 0) {
|
||||
fonts.push("…".to_string());
|
||||
}
|
||||
let detail = format!("{}\n{}", fonts.join(", "), tl!("These fonts aren't available. Their text shows in another font."));
|
||||
let message = tl!("Edit type set in fonts that aren't available?");
|
||||
let fields = json!({"message": message, "detail": detail, "__token": p.get("token")});
|
||||
app.ui.dialog = Some(Dialog::new(MISSING_FONT_EDIT, fields));
|
||||
}
|
||||
|
||||
/// OK on [`ask_missing_font_edit`]: closes, then the Type tool starts the edit.
|
||||
fn edit_in_missing_fonts(app: &mut VectorcraftApp, d: &Dialog) -> Result<Value, String> {
|
||||
app.ui.dialog = None;
|
||||
answer_missing_font_edit(app, d, true);
|
||||
Ok(Value::Null)
|
||||
}
|
||||
|
||||
/// Give the Type tool the answer to [`ask_missing_font_edit`]'s question `d`: with `ok` the edit
|
||||
/// starts at once; without, the tool forgets it.
|
||||
pub(super) fn answer_missing_font_edit(app: &mut VectorcraftApp, d: &Dialog, ok: bool) {
|
||||
app.session.set_tool_option("missingFontEdit", &json!({"token": d.fields.get("__token"), "ok": ok}));
|
||||
if ok {
|
||||
let r = app.session.tool_poll(app.view_info(), false);
|
||||
crate::canvas::apply_requests(app, r);
|
||||
}
|
||||
}
|
||||
|
||||
/// Most messages kept for later while a dialog is open ([`tell`]).
|
||||
const MAX_WAITING: usize = 16;
|
||||
|
||||
|
||||
@@ -166,6 +166,11 @@ pub fn open_tool_dialog(app: &mut VectorcraftApp, kind: &str, p: Value) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
// A click or double-click that would edit type set in fonts that aren't available.
|
||||
vectorcraft_tools::text::MISSING_FONT_EDIT => {
|
||||
super::confirm::ask_missing_font_edit(app, &p);
|
||||
return;
|
||||
}
|
||||
_ => return,
|
||||
};
|
||||
app.ui.dialog = Some(d);
|
||||
|
||||
@@ -3072,6 +3072,7 @@ digits Malayalam Малаялам
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Колко близо на екрана показалецът или влачена точка трябва да стигне до обект, за да прилепнат интелигентните водачи; разстоянието е еднакво при всеки мащаб.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Прилепва края на линеен сегмент или окръжност, начертана от центъра си, така че да докосва близка крива.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Прилепва края на линеен сегмент така, че да среща близък прав сегмент под прав ъгъл.
|
||||
Edit type set in fonts that aren't available? Да се редактира ли текст с шрифтове, които не са налични?
|
||||
Reset all preferences to their defaults? Да се нулират ли всички настройки до стойностите по подразбиране?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Стойностите по подразбиране се прилагат, когато щракнете върху ОК в Настройки. Отказ там запазва текущите ви настройки.
|
||||
Restore Recovered Documents Възстановяване на възстановените документи
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4509,6 +4509,7 @@ font-technology Variable Varijabilni
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Koliko blizu na ekranu pokazivač ili prevučena tačka mora doći do objekta da bi ga pametne vodilice uhvatile; udaljenost je ista pri svakom zumu.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Hvata kraj segmenta linije ili krug nacrtan iz središta tako da dodiruje obližnju krivu.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Hvata kraj segmenta linije tako da pod pravim uglom susreće obližnji ravni segment.
|
||||
Edit type set in fonts that aren't available? Urediti tekst u fontovima koji nisu dostupni?
|
||||
Reset all preferences to their defaults? Vratiti sve postavke na zadane vrijednosti?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Zadane vrijednosti primjenjuju se kada kliknete U redu u Postavkama. Otkaži tamo zadržava vaše trenutne postavke.
|
||||
Smaller ↔ Larger Manje ↔ veće
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3902,6 +3902,7 @@ digits Malayalam Malaiàlam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Com d’a prop a la pantalla han d’arribar el punter o un punt arrossegat a l’art perquè les guies intel·ligents s’hi ajustin; la distància és la mateixa a qualsevol zoom.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Ajusta l’extrem d’un segment de línia, o un cercle dibuixat des del centre, perquè toqui una corba propera.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Ajusta l’extrem d’un segment de línia perquè trobi un segment recte proper en angle recte.
|
||||
Edit type set in fonts that aren't available? Voleu editar el text en tipus de lletra que no estan disponibles?
|
||||
Reset all preferences to their defaults? Voleu restablir totes les preferències als valors predeterminats?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Els valors predeterminats s’apliquen quan feu clic a D’acord a Preferències. Cancel·la allà conserva les preferències actuals.
|
||||
Restore Recovered Documents Restaura els documents recuperats
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4613,6 +4613,7 @@ font-technology Variable Variabilní
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Jak blízko na obrazovce musí ukazatel nebo tažený bod přijít ke kresbě, aby se chytrá vodítka přichytila; vzdálenost je stejná při každém zvětšení.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Přichytí konec úsečky nebo kružnici kreslenou od středu tak, aby se dotýkala blízké křivky.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Přichytí konec úsečky tak, aby se s blízkým rovným segmentem setkal v pravém úhlu.
|
||||
Edit type set in fonts that aren't available? Upravit text v písmech, která nejsou k dispozici?
|
||||
Reset all preferences to their defaults? Obnovit všechny předvolby na výchozí hodnoty?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Výchozí hodnoty se použijí po klepnutí na OK v Předvolbách. Zrušit tam zachová vaše současné předvolby.
|
||||
Smaller ↔ Larger Menší ↔ Větší
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -7012,6 +7012,7 @@ font-technology Variable Variable
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Hvor tæt på skærmen markøren eller et trukket punkt skal komme på grafik, for at de smarte hjælpelinjer fastgør til den; afstanden er den samme ved alle zoomniveauer.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Fastgør enden af et linjesegment eller en cirkel tegnet fra midten, så den rører en nærliggende kurve.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Fastgør enden af et linjesegment, så det møder et nærliggende lige segment i en ret vinkel.
|
||||
Edit type set in fonts that aren't available? Rediger tekst i skrifttyper, der ikke er tilgængelige?
|
||||
Reset all preferences to their defaults? Nulstil alle præferencer til standard?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Standardværdierne anvendes, når du klikker på OK i Præferencer. Annullér der beholder dine nuværende præferencer.
|
||||
Smaller ↔ Larger Mindre ↔ Større
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3124,6 +3124,7 @@ digits Malayalam Malayalam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Wie nah der Zeiger oder ein gezogener Punkt auf dem Bildschirm an Bildmaterial kommen muss, damit intelligente Hilfslinien einrasten; der Abstand ist bei jedem Zoom gleich.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Richtet das Ende eines Liniensegments oder einen von der Mitte aus gezeichneten Kreis so aus, dass er eine nahe Kurve berührt.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Richtet das Ende eines Liniensegments so aus, dass es ein nahes gerades Segment im rechten Winkel trifft.
|
||||
Edit type set in fonts that aren't available? Text in Schriften bearbeiten, die nicht verfügbar sind?
|
||||
Reset all preferences to their defaults? Alle Voreinstellungen auf ihre Standardwerte zurücksetzen?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Die Standardwerte werden angewendet, wenn Sie in den Voreinstellungen auf OK klicken. Abbrechen dort behält Ihre aktuellen Voreinstellungen.
|
||||
Restore Recovered Documents Wiederhergestellte Dokumente öffnen
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3942,6 +3942,7 @@ digits Malayalam Μαλαγιάλαμ
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Πόσο κοντά στην οθόνη πρέπει να φτάσει ο δείκτης ή ένα σημείο που σύρεται σε γραφικά για να προσκολληθούν οι έξυπνοι οδηγοί· η απόσταση είναι ίδια σε κάθε ζουμ.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Προσκολλά το άκρο ενός ευθύγραμμου τμήματος ή έναν κύκλο που σχεδιάζεται από το κέντρο του ώστε να αγγίζει μια κοντινή καμπύλη.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Προσκολλά το άκρο ενός ευθύγραμμου τμήματος ώστε να συναντά ένα κοντινό ευθύ τμήμα σε ορθή γωνία.
|
||||
Edit type set in fonts that aren't available? Επεξεργασία κειμένου σε γραμματοσειρές που δεν είναι διαθέσιμες;
|
||||
Reset all preferences to their defaults? Επαναφορά όλων των προτιμήσεων στις προεπιλογές τους;
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Οι προεπιλογές εφαρμόζονται όταν κάνετε κλικ στο Εντάξει στις Προτιμήσεις. Το Ακύρωση εκεί διατηρεί τις τρέχουσες προτιμήσεις σας.
|
||||
Restore Recovered Documents Επαναφορά ανακτημένων εγγράφων
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3162,6 +3162,7 @@ digits Malayalam Malayálam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Cuánto debe acercarse en pantalla el puntero o un punto arrastrado a la ilustración para que las guías inteligentes se ajusten a ella; la distancia es la misma con cualquier zoom.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Ajusta el extremo de un segmento de línea, o un círculo dibujado desde su centro, para que toque una curva cercana.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Ajusta el extremo de un segmento de línea para que encuentre un segmento recto cercano en ángulo recto.
|
||||
Edit type set in fonts that aren't available? ¿Editar el texto en fuentes que no están disponibles?
|
||||
Reset all preferences to their defaults? ¿Restablecer todas las preferencias a sus valores predeterminados?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Los valores predeterminados se aplican al hacer clic en Aceptar en Preferencias. Cancelar ahí conserva sus preferencias actuales.
|
||||
Restore Recovered Documents Restaurar documentos recuperados
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4532,6 +4532,7 @@ font-technology Variable Muuttuvat
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Kuinka lähelle grafiikkaa osoittimen tai vedettävän pisteen on tultava näytöllä, jotta älykkäät apuviivat kohdistavat siihen; etäisyys on sama kaikilla zoomauksilla.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Kohdistaa janan pään tai keskipisteestä piirretyn ympyrän niin, että se koskettaa lähellä olevaa käyrää.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Kohdistaa janan pään niin, että se kohtaa lähellä olevan suoran segmentin suorassa kulmassa.
|
||||
Edit type set in fonts that aren't available? Muokataanko tekstiä, jonka fontit eivät ole käytettävissä?
|
||||
Reset all preferences to their defaults? Palautetaanko kaikki asetukset oletuksiin?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Oletukset otetaan käyttöön, kun valitset Asetuksissa OK. Peruuta siellä säilyttää nykyiset asetuksesi.
|
||||
Smaller ↔ Larger Pienempi ↔ Suurempi
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3150,6 +3150,7 @@ digits Malayalam Malayalam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. La distance à l’écran à laquelle le pointeur ou un point déplacé doit approcher une illustration pour que les repères commentés s’y aimantent. Elle est la même à tous les zooms.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Aimante l’extrémité d’un segment de droite, ou un cercle tracé depuis son centre, pour qu’il touche une courbe proche.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Aimante l’extrémité d’un segment de droite pour qu’il rencontre un segment droit proche à angle droit.
|
||||
Edit type set in fonts that aren't available? Modifier le texte composé dans des polices non disponibles ?
|
||||
Reset all preferences to their defaults? Rétablir toutes les préférences à leur valeur par défaut ?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Les valeurs par défaut sont appliquées lorsque vous cliquez sur OK dans Préférences. Annuler y conserve vos préférences actuelles.
|
||||
Restore Recovered Documents Restaurer les documents récupérés
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3130,6 +3130,7 @@
|
||||
Reset all બધું રીસેટ કરો
|
||||
Reset all 3D settings to their defaults. બધી 3D સેટિંગ્સ ડિફોલ્ટ પર રીસેટ કરો.
|
||||
Reset all Revolve settings to their defaults. બધી રિવોલ્વ સેટિંગ્સ ડિફોલ્ટ પર રીસેટ કરો.
|
||||
Edit type set in fonts that aren't available? ઉપલબ્ધ ન હોય તેવા ફૉન્ટમાં સેટ કરેલો ટેક્સ્ટ સંપાદિત કરીએ?
|
||||
Reset all preferences to their defaults? બધી પસંદગીઓ ડિફોલ્ટ પર રીસેટ કરીએ?
|
||||
Reset the rows to the artwork's colors પંક્તિઓ આર્ટવર્કના રંગો પર રીસેટ કરો
|
||||
Reset to Inverse ઊલટા પર રીસેટ કરો
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -4272,6 +4272,7 @@ antiAlias Sharp शार्प
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. स्मार्ट गाइड्स के स्नैप करने के लिए पॉइंटर या ड्रैग किया गया पॉइंट स्क्रीन पर आर्ट के कितने पास आना चाहिए; यह दूरी हर ज़ूम पर समान रहती है।
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. लाइन सेगमेंट के सिरे को, या केंद्र से ड्रॉ किए गए वृत्त को, इस तरह स्नैप करता है कि वह पास के वक्र को छुए।
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. लाइन सेगमेंट के सिरे को इस तरह स्नैप करता है कि वह पास के सीधे सेगमेंट से समकोण पर मिले।
|
||||
Edit type set in fonts that aren't available? जो फ़ॉन्ट उपलब्ध नहीं हैं, उनमें सेट टेक्स्ट एडिट करें?
|
||||
Reset all preferences to their defaults? सभी प्रेफ़रेंसेज़ को उनके डिफ़ॉल्ट पर रीसेट करें?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. डिफ़ॉल्ट तब लागू होते हैं जब आप प्रेफ़रेंसेज़ में ठीक है पर क्लिक करते हैं। वहाँ रद्द करें आपकी मौजूदा प्रेफ़रेंसेज़ बनाए रखता है।
|
||||
Restore Recovered Documents पुनर्स्थापना डॉक्यूमेंट
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3743,6 +3743,7 @@ mark-style Japanese Japán
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Milyen közel kell a mutatónak vagy egy húzott pontnak a képernyőn a grafikához érnie, hogy az intelligens segédvonalak illesszenek; a távolság minden nagyításnál azonos.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Egy szakasz végét vagy a középpontjából rajzolt kört úgy illeszti, hogy érintse a közeli görbét.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Egy szakasz végét úgy illeszti, hogy derékszögben találkozzon egy közeli egyenes szakasszal.
|
||||
Edit type set in fonts that aren't available? Szerkeszti a nem elérhető betűtípusokkal szedett szöveget?
|
||||
Reset all preferences to their defaults? Visszaállítja az összes beállítást az alapértékre?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Az alapértékek akkor lépnek életbe, amikor a Beállításokban az OK gombra kattint. Az ottani Mégse megtartja a jelenlegi beállításokat.
|
||||
Restore Recovered Documents Helyreállított dokumentumok visszaállítása
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4264,6 +4264,7 @@ font-technology Variable Variabel
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Seberapa dekat penunjuk atau titik yang diseret harus mendekati karya di layar agar panduan cerdas menjepret; jaraknya sama pada setiap zoom.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Menjepretkan ujung segmen garis, atau lingkaran yang digambar dari pusatnya, agar menyentuh kurva di dekatnya.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Menjepretkan ujung segmen garis agar bertemu segmen lurus di dekatnya pada sudut siku-siku.
|
||||
Edit type set in fonts that aren't available? Edit teks dengan font yang tidak tersedia?
|
||||
Reset all preferences to their defaults? Atur ulang semua preferensi ke defaultnya?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Nilai default diterapkan saat Anda mengklik OK di Preferensi. Batal di sana mempertahankan preferensi Anda saat ini.
|
||||
Smaller ↔ Larger Lebih kecil ↔ Lebih besar
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2511 and column 5.
|
@@ -3205,6 +3205,7 @@ digits Malayalam Malayalam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Quanto vicino sullo schermo il puntatore o un punto trascinato deve arrivare alla grafica perché le guide sensibili vi si aggancino; la distanza è la stessa a ogni zoom.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Aggancia l’estremità di un segmento di linea, o un cerchio disegnato dal centro, in modo che tocchi una curva vicina.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Aggancia l’estremità di un segmento di linea in modo che incontri un segmento rettilineo vicino ad angolo retto.
|
||||
Edit type set in fonts that aren't available? Modificare il testo in font non disponibili?
|
||||
Reset all preferences to their defaults? Ripristinare tutte le preferenze ai valori predefiniti?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. I valori predefiniti vengono applicati quando fai clic su OK in Preferenze. Annulla lì mantiene le preferenze attuali.
|
||||
Restore Recovered Documents Ripristina documenti recuperati
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3182,6 +3182,7 @@ mark-style Japanese 日本式
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. スマートガイドがスナップするために、ポインターやドラッグしたポイントが画面上でアートにどこまで近づく必要があるかです。この距離はどのズームでも同じです。
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. 直線セグメントの端、または中心から描いた円を、近くの曲線に接するようにスナップします。
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. 直線セグメントの端を、近くの直線セグメントと直角に交わるようにスナップします。
|
||||
Edit type set in fonts that aren't available? 使用できないフォントのテキストを編集しますか?
|
||||
Reset all preferences to their defaults? すべての環境設定を初期値に戻しますか?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. 初期値は環境設定で OK をクリックすると適用されます。そこでキャンセルすると現在の環境設定が保たれます。
|
||||
Restored documents open unsaved: save them to keep them. 復元したドキュメントは未保存の状態で開きます。保存して残してください。
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -6330,6 +6330,7 @@ font-technology Variable ცვლადი
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. რამდენად ახლოს უნდა მივიდეს ეკრანზე მაჩვენებელი ან გადათრეული წერტილი გრაფიკასთან, რომ ჭკვიანმა დამხმარე ხაზებმა მიაბან; მანძილი ყველა მასშტაბზე ერთნაირია.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. ხაზის სეგმენტის ბოლოს, ან ცენტრიდან დახატულ წრეწირს, ისე აბამს, რომ ახლომდებარე მრუდს შეეხოს.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. ხაზის სეგმენტის ბოლოს ისე აბამს, რომ ახლომდებარე სწორ სეგმენტს მართი კუთხით შეხვდეს.
|
||||
Edit type set in fonts that aren't available? დავარედაქტიროთ მიუწვდომელი შრიფტებით აწყობილი ტექსტი?
|
||||
Reset all preferences to their defaults? დავაბრუნოთ ყველა პარამეტრი ნაგულისხმევ მნიშვნელობებზე?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. ნაგულისხმევი მნიშვნელობები გამოიყენება, როცა პარამეტრებში OK-ს დააჭერთ. იქ გაუქმება ინარჩუნებს თქვენს მიმდინარე პარამეტრებს.
|
||||
Smaller ↔ Larger უფრო პატარა ↔ უფრო დიდი
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3171,6 +3171,7 @@ mark-style Japanese 일본식
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. 스마트 안내선이 스냅하려면 포인터나 드래그한 점이 화면에서 아트에 얼마나 가까이 와야 하는지입니다. 이 거리는 모든 확대/축소에서 같습니다.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. 선 세그먼트의 끝이나 중심에서 그린 원을 가까운 곡선에 닿도록 스냅합니다.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. 선 세그먼트의 끝을 가까운 직선 세그먼트와 직각으로 만나도록 스냅합니다.
|
||||
Edit type set in fonts that aren't available? 사용할 수 없는 글꼴로 설정된 문자를 편집하시겠습니까?
|
||||
Reset all preferences to their defaults? 모든 환경 설정을 기본값으로 재설정하시겠습니까?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. 기본값은 환경 설정에서 확인을 클릭하면 적용됩니다. 그곳에서 취소를 누르면 현재 환경 설정이 유지됩니다.
|
||||
Restored documents open unsaved: save them to keep them. 복원된 문서는 저장되지 않은 상태로 열립니다. 보존하려면 저장하세요.
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4886,6 +4886,7 @@ font-technology Variable Variabel
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Hoe dicht de aanwijzer of een gesleept punt op het scherm bij een illustratie moet komen voordat slimme hulplijnen erop uitlijnen; de afstand is bij elke zoom gelijk.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Lijnt het einde van een lijnsegment, of een cirkel getekend vanuit het middelpunt, zo uit dat het een curve in de buurt raakt.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Lijnt het einde van een lijnsegment zo uit dat het een recht segment in de buurt onder een rechte hoek raakt.
|
||||
Edit type set in fonts that aren't available? Tekst in lettertypen bewerken die niet beschikbaar zijn?
|
||||
Reset all preferences to their defaults? Alle voorkeuren terugzetten naar de standaardwaarden?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. De standaardwaarden worden toegepast wanneer u in Voorkeuren op OK klikt. Annuleren daar behoudt uw huidige voorkeuren.
|
||||
Smaller ↔ Larger Kleiner ↔ Groter
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4454,6 +4454,7 @@ font-technology Variable Zmienne
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Jak blisko na ekranie wskaźnik lub przeciągany punkt musi znaleźć się przy grafice, aby inteligentne linie pomocnicze go przyciągnęły; odległość jest taka sama przy każdym powiększeniu.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Przyciąga koniec odcinka lub okrąg rysowany od środka tak, aby dotykał pobliskiej krzywej.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Przyciąga koniec odcinka tak, aby spotykał pobliski prosty segment pod kątem prostym.
|
||||
Edit type set in fonts that aren't available? Edytować tekst złożony niedostępnymi czcionkami?
|
||||
Reset all preferences to their defaults? Przywrócić domyślne wartości wszystkich preferencji?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Wartości domyślne zostaną zastosowane po kliknięciu OK w Preferencjach. Anuluj w tym oknie zachowuje bieżące preferencje.
|
||||
Smaller ↔ Larger Mniejszy ↔ większy
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2654,6 +2654,7 @@ digits Malayalam Malaiala
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Quão perto na tela o ponteiro ou um ponto arrastado precisa chegar da arte para que as guias inteligentes se ajustem a ela; a distância é a mesma em qualquer zoom.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Ajusta a extremidade de um segmento de linha, ou um círculo desenhado a partir do centro, para que toque uma curva próxima.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Ajusta a extremidade de um segmento de linha para que encontre um segmento reto próximo em ângulo reto.
|
||||
Edit type set in fonts that aren't available? Editar o texto em fontes que não estão disponíveis?
|
||||
Reset all preferences to their defaults? Redefinir todas as preferências para o padrão?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Os padrões são aplicados quando você clica em OK em Preferências. Cancelar ali mantém suas preferências atuais.
|
||||
Restored documents open unsaved: save them to keep them. Os documentos restaurados abrem sem salvar: salve-os para mantê-los.
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3192,6 +3192,7 @@ digits Malayalam Малаялам
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Насколько близко на экране указатель или перетаскиваемая точка должны подойти к объекту, чтобы умные направляющие привязали их; расстояние одинаково при любом масштабе.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Привязывает конец отрезка или окружность, нарисованную от центра, так, чтобы она касалась ближайшей кривой.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Привязывает конец отрезка так, чтобы он встречал ближайший прямой сегмент под прямым углом.
|
||||
Edit type set in fonts that aren't available? Редактировать текст, набранный недоступными шрифтами?
|
||||
Reset all preferences to their defaults? Сбросить все настройки до значений по умолчанию?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Значения по умолчанию применяются, когда вы нажимаете ОК в окне «Настройки». Отмена там сохраняет текущие настройки.
|
||||
Restore Recovered Documents Восстановить восстановленные документы
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3092,6 +3092,7 @@ digits Malayalam Malayalam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Hur nära på skärmen pekaren eller en dragen punkt måste komma teckningen för att de smarta stödlinjerna ska fästa mot den; avståndet är detsamma vid alla zoomnivåer.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Fäster änden av ett linjesegment, eller en cirkel ritad från sin mitt, så att den rör en närliggande kurva.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Fäster änden av ett linjesegment så att det möter ett närliggande rakt segment i rät vinkel.
|
||||
Edit type set in fonts that aren't available? Redigera text i typsnitt som inte är tillgängliga?
|
||||
Reset all preferences to their defaults? Återställa alla inställningar till standard?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Standardvärdena verkställs när du klickar på OK i Inställningar. Avbryt där behåller dina nuvarande inställningar.
|
||||
Restore Recovered Documents Återställ återskapade dokument
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2929,6 +2929,7 @@ digits Malayalam Malayalam
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Akıllı Kılavuzların yaslaması için işaretçinin veya sürüklenen noktanın ekranda çizime ne kadar yaklaşması gerektiği; mesafe her yakınlaştırmada aynıdır.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Bir çizgi parçasının ucunu veya merkezinden çizilen bir daireyi yakındaki bir eğriye değecek şekilde yaslar.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Bir çizgi parçasının ucunu yakındaki düz bir parçayla dik açıyla buluşacak şekilde yaslar.
|
||||
Edit type set in fonts that aren't available? Mevcut olmayan yazı tiplerindeki metin düzenlensin mi?
|
||||
Reset all preferences to their defaults? Tüm tercihler varsayılanlarına sıfırlansın mı?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Varsayılanlar, Tercihler'de Tamam'a tıkladığınızda uygulanır. Oradaki İptal, mevcut tercihlerinizi korur.
|
||||
Restore Recovered Documents Kurtarılan Belgeleri Geri Yükle
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3197,6 +3197,7 @@ digits Malayalam Малаялам
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Наскільки близько на екрані вказівник або перетягувана точка мають підійти до об’єкта, щоб розумні напрямні їх прив’язали; відстань однакова за будь-якого масштабу.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Прив’язує кінець відрізка або коло, намальоване від центру, так, щоб воно торкалося найближчої кривої.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Прив’язує кінець відрізка так, щоб він зустрічав найближчий прямий сегмент під прямим кутом.
|
||||
Edit type set in fonts that aren't available? Редагувати текст, набраний недоступними шрифтами?
|
||||
Reset all preferences to their defaults? Скинути всі налаштування до значень за промовчанням?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Значення за промовчанням застосовуються, коли ви натискаєте ОК у вікні «Налаштування». Скасувати там зберігає поточні налаштування.
|
||||
Restore Recovered Documents Відновити відновлені документи
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -3512,6 +3512,7 @@ mark-style Japanese Kiểu Nhật
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. Con trỏ hoặc điểm đang kéo phải đến gần hình vẽ trên màn hình bao nhiêu để đường căn thông minh hút vào; khoảng cách này như nhau ở mọi mức thu phóng.
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. Hút đầu mút của đoạn thẳng, hoặc hình tròn vẽ từ tâm, để nó chạm vào một đường cong ở gần.
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. Hút đầu mút của đoạn thẳng để nó gặp một đoạn thẳng ở gần theo góc vuông.
|
||||
Edit type set in fonts that aren't available? Chỉnh sửa văn bản dùng phông chữ không có sẵn?
|
||||
Reset all preferences to their defaults? Đặt lại tất cả tùy chọn về mặc định?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. Giá trị mặc định được áp dụng khi bạn nhấn OK trong Tùy chọn. Hủy ở đó giữ nguyên các tùy chọn hiện tại của bạn.
|
||||
Restore Recovered Documents Khôi phục tài liệu đã phục hồi
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 205 and column 5.
|
@@ -3056,6 +3056,7 @@ digits Malayalam 马拉雅拉姆数字
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. 指针或拖动的点在屏幕上需离图稿多近,智能参考线才会吸附;该距离在任何缩放比例下都相同。
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. 吸附线段的端点或从中心绘制的圆,使其与附近的曲线相切。
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. 吸附线段的端点,使其与附近的直线段成直角相交。
|
||||
Edit type set in fonts that aren't available? 要编辑使用了不可用字体的文字吗?
|
||||
Reset all preferences to their defaults? 将所有首选项重置为默认值?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. 在首选项中点击确定后才会应用默认值。在那里点击取消会保留当前首选项。
|
||||
Restore Recovered Documents 恢复已恢复的文档
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -4340,6 +4340,7 @@ digits Malayalam 馬來亞拉姆數字
|
||||
How near on screen the pointer or a dragged point must come to art for Smart Guides to snap to it; the distance is the same at every zoom. 指標或拖曳的點在螢幕上需離圖稿多近,智慧型參考線才會靠齊;此距離在任何縮放比例下都相同。
|
||||
Snaps the end of a line segment, or a circle drawn from its center, so that it touches a nearby curve. 靠齊線段的端點或從中心繪製的圓,使其與附近的曲線相切。
|
||||
Snaps the end of a line segment so that it meets a nearby straight segment at a right angle. 靠齊線段的端點,使其與附近的直線段成直角相交。
|
||||
Edit type set in fonts that aren't available? 要編輯使用了無法使用之字體的文字嗎?
|
||||
Reset all preferences to their defaults? 要將所有偏好設定重設為預設值嗎?
|
||||
The defaults are applied when you click OK in Preferences. Cancel there keeps your current preferences. 在偏好設定中按下確定後才會套用預設值。在那裡按下取消會保留目前的偏好設定。
|
||||
Restore Recovered Documents 還原找回的文件
|
||||
|
||||
|
Can't render this file because it is too large.
|
+12
@@ -11460,6 +11460,18 @@ Copy only fonts you own or are licensed to install. `command.batch` returns befo
|
||||
`text.findFontFiles {}`. `vectorcraft-cli run` stops the search when its last step ends. The web build has no Fonts
|
||||
folder and no folder search.
|
||||
|
||||
A Type tool click, or a Selection or Direct Selection double-click, that would start editing type whose story (every
|
||||
frame threaded with it) is drawn in a font that isn't available as named, as `text.missingFonts` reads them, opens a
|
||||
`missingFontEdit` question instead (fields `message`, `detail`, `__token`) and does not start editing. `ui.dialog.confirm`
|
||||
starts the edit with the caret where the type was clicked; `ui.dialog.cancel` leaves the document, its undo history and
|
||||
the selection as they were. Answering does not change the fonts the type names, install a font or open Find Font. The
|
||||
question comes again for each new edit, and not for a click within the type being edited or in another frame of its
|
||||
story. The Type tool's `missingFontEdit {token, ok}` option is how the question gives its answer. Commands that change
|
||||
text (`text.editRange`, `text.setRangeStyle` and the others) do not ask. This follows the help page
|
||||
https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/edit-text-without-replacing-missing-fonts.html,
|
||||
which describes a warning shown when text with missing fonts is double-clicked, and editing after OK. Cancel, asking
|
||||
again for each edit, the Type tool's single click and the style-only case are VectorCraft's own rules.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"text.missingFonts","params":{}}}
|
||||
{"name":"run_command","arguments":{"command":"text.findFontFiles","params":{"folder":"/Users/me/Downloads"}}}
|
||||
|
||||
@@ -1887,6 +1887,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
The font menu's Recently Added filter (on its own row under Font Technology) lists only the installed families added in the last 30 days, the newest at the top, as the [user guide](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=486) and the [font browser overview](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/font-options-overview.html) describe it (`vectorcraft_text::FontDb::recently_added`). It works together with the search, script, kind, Variable, ★ and Document filters, lists only the families every active filter matches, steers the closed field's wheel, and is shared by every font menu for the session like the other filters. VectorCraft's own rules: a family is dated by the creation time of its newest font file on this computer (a file the file system keeps no creation time for, or one dated in the future, does not count), the 30th day is included, families added at the same instant are in name order, the recently used families appear in that order without the Recent Fonts section, Show Similar Fonts orders only the families the filter lists, a family leaves the list when its 30 days end while the menu is open, an empty list keeps the filter on and says no fonts match, and fonts bundled with the app or loaded from documents are never listed. Measured by `font_menu::tests::the_recently_added_filter_lists_new_families_newest_first`, `font_menu::tests::the_recently_added_filter_drops_families_as_their_30_days_end`, `font_menu::tests::the_recently_added_filter_lists_a_font_installed_just_now`, `tests::recently_added::families_added_in_the_last_30_days_are_listed_newest_first`, `tests::recently_added::a_family_is_dated_by_its_newest_valid_file` and `tests::sysfonts::installed_fonts_are_recently_added_by_their_files_creation_time`.
|
||||
The font database looks up a name that is neither a loaded nor an installed family among the other names of the loaded and installed fonts once for each style it is asked in, and keeps the answer until fonts are added or rescanned. Laying out a story of 1,000 paragraphs set in a font that is not installed, with 400 more fonts loaded, takes a median of 56 to 71 ms instead of 409 to 507 ms on Windows 11 (`CRAFT_FONTS_DIR=<craft-fonts checkout> cargo test --release -p vectorcraft-text --lib missing_font_story_layout_timing -- --ignored --nocapture`).
|
||||
A font family removed while the app runs leaves the font menus when the app scans the font folders again (when its window comes to the front after a font folder changed, or Refresh Font List), also when type had used it: that type then draws in the fallback font and Find Font lists the font as missing, until the font is installed again and the folders are scanned.
|
||||
Editing type set in a font that isn't available asks first: a Type tool click, or a Selection or Direct Selection double-click, on type whose story is drawn in a missing family or a style its family lacks opens a question naming those fonts, and OK starts editing where the type was clicked, as the [help page](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/edit-text-without-replacing-missing-fonts.html) describes for a double-click on such text. VectorCraft's own rules: Cancel leaves the document, its undo history and the selection as they were; each new edit asks again; the Type tool's single click and a style its family lacks ask too; the question does not change the fonts the type names. Tests: `text::tests::a_click_on_type_in_a_missing_font_asks_before_editing` and the tests after it (`crates/tools`), `canvas::tests::double_clicking_type_in_a_missing_font_asks_before_editing` (`crates/ui-egui`).
|
||||
- **Files (M4):**
|
||||
- PDF export keeps harakat and zero-advance Noto Arabic dot glyphs in one compatible batch per layout line, with per-glyph vertical offsets (#6309). `crates/pdf/src/tests/realtext.rs` (`mark_text_*`) checks decoded cluster mappings, mixed Arabic/Latin/digits, contour placement against outline export, vertical columns, differing path rotations and PDF/X-1a/3/4. Editable-text import preserves authored ActualText separately (#6165), with cross-line/style layout limits; separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence.
|
||||
- PDF export and print composition use the optional shared guarded writer ([pdf-backend.md](pdf-backend.md)); app drawing and output policy and desktop printer submission remain in their existing layers. The shared reader keeps the app-owned import adapter; synthetic tests cover layer and overprint state across windows, long operands, inline images, failed decoding, document limits and incomplete tails. Empty and populated metadata key presence is regression-tested, and CI checks the immutable backend source.
|
||||
|
||||
Reference in New Issue
Block a user