Retype: the panel says when a search left shapes out

retype.find keeps the `truncated` flag type.retypeFonts returns, and
retype.list returns it. When shapes past the first 2,048, or more than
16 groups deep, were not compared, the panel says so under the field.

- Rows for that line and for the "Retype: select outlined text (paths
  or compound paths)" error in every complete catalog. The panel shows
  that error when a search finds no path to compare.
- The params text and docs/mcp.md say "the fonts whose glyphs match the
  selected outlined text". docs/type-parity.md's Retype row lists the
  missing Type menu, context menu and Quick Actions entry points and the
  favorites filter, as the other two docs do.
- Font samples: when eight samples are rendering, finished ones join
  the ready samples before a new one starts. Samples whose text changed
  while they rendered were never asked for again, so after eight of them
  no sample started; typing in the panel's sample field reaches that.
- The panel test that checks the first-ranked font accepts a tie with a
  renamed copy that other tests load into the shared font database.

Part of #4934.
This commit is contained in:
dotCooCoo committed 2026-11-18 16:27:05 -08:00
1 parent 734582bd81
commit e8d070ea37
39 files changed
+170 -18

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
//! Retype's matching fonts (`type.retypeFonts`): the fonts whose glyphs the selected outlined text
//! is, ranked, for the Retype panel's list
//! Retype's matching fonts (`type.retypeFonts`): the fonts whose glyphs match the selected outlined
//! text, ranked, for the Retype panel's list
//! (<https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/identify-fonts-using-retype.html>,
//! <https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/apply-retype-suggested-fonts-to-live-text.html>).
//! The panel lists ten fonts and five more on request. Each selected glyph shape is compared with
@@ -26,7 +26,7 @@ pub(in crate::cmd) fn specs() -> Vec<CommandSpec> {
"Find Matching Fonts",
[],
None,
"{count?: 1..96 (default 10)} the fonts whose glyphs the selected outlined text is, as the Retype panel lists them: each selected shape (paths and compound paths, inside groups too) is compared with the glyphs of up to 96 loaded fonts, those of the document's live type first, by type.retype's matching (exact matches only); of two versions of a font loaded at once, only the version its family and style name gives is compared, the one choosing the font sets; the fonts rank by how many shapes each matches, then by the mean distance left after fitting, then by family and style name; the document does not change → {fonts: [{family, style, matched (shapes it matches)}] (the first count), shapes (shapes compared), more (more fonts match than count), truncated (shapes past the limits were left out)}; a count that is not a whole number from 1 to 96 is an error",
"{count?: 1..96 (default 10)} the fonts whose glyphs match the selected outlined text, as the Retype panel lists them: each selected shape (paths and compound paths, inside groups too) is compared with the glyphs of up to 96 loaded fonts, those of the document's live type first, by type.retype's matching (exact matches only); of two versions of a font loaded at once, only the version its family and style name gives is compared, the one choosing the font sets; the fonts rank by how many shapes each matches, then by the mean distance left after fitting, then by family and style name; the document does not change → {fonts: [{family, style, matched (shapes it matches)}] (the first count), shapes (shapes compared), more (more fonts match than count), truncated (shapes past the limits were left out)}; a count that is not a whole number from 1 to 96 is an error",
has_selected_path,
retype_fonts
)]
@@ -106,6 +106,21 @@ fn shapes_that_are_no_glyph_list_no_font() {
assert!(s.execute("type.retypeFonts", &json!({})).is_err());
}
#[test]
fn shapes_past_the_limits_are_reported_as_left_out() {
let mut s = session();
let top = outlined(&mut s, json!({"x": 40, "y": 100, "text": "A", "size": 40}));
// B, nested deeper than Retype looks.
let mut deep = outlined(&mut s, json!({"x": 40, "y": 200, "text": "B", "size": 40}));
for _ in 0..20 {
s.execute("select.set", &json!({"ids": [deep]})).unwrap();
deep = s.execute("object.group", &json!({})).unwrap()["id"].as_u64().unwrap();
}
s.execute("select.set", &json!({"ids": [top, deep]})).unwrap();
let r = query(&mut s, json!({}), bundled());
assert_eq!((r["shapes"].clone(), r["truncated"].clone()), (json!(1), json!(true)), "{r}");
}
/// Two versions of one font: choosing the font by name sets the version the name gives, so only
/// that version is compared, and a font whose other version alone matches is not listed.
#[test]
+2 -2
View File
@@ -784,13 +784,13 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"retype.find",
"Find Matching Fonts",
"",
"{more?: bool} show the Retype panel and list the fonts whose glyphs the selected outlined text is, ranked as type.retypeFonts ranks them: ten, as Find Matching Fonts does, or with more: true the next five fonts the last search found (whatever is selected now; before any search, a first search), as Find more font matches does; the document does not change; a selection with no path or compound path, or a more that is not true or false, is an error and leaves the list as it was; returns what retype.list returns",
"{more?: bool} show the Retype panel and list the fonts whose glyphs match the selected outlined text, ranked as type.retypeFonts ranks them: ten, as Find Matching Fonts does, or with more: true the next five fonts the last search found (whatever is selected now; before any search, a first search), as Find more font matches does; the document does not change; a selection with no path or compound path, or a more that is not true or false, is an error and leaves the list as it was; returns what retype.list returns",
),
(
"retype.list",
"List Matching Fonts",
"",
"{} what the Retype panel shows: {searched (a search ran since the last reset), fonts: [{family, style, matched (shapes it matches)}], shapes (shapes the last search compared), more (more fonts match than the list holds), size: small|medium|large, text (the samples' text; empty for a generic sample)}",
"{} what the Retype panel shows: {searched (a search ran since the last reset), fonts: [{family, style, matched (shapes it matches)}], shapes (shapes the last search compared), more (more fonts match than the list holds), truncated (the last search left out shapes past type.retype's limits), size: small|medium|large, text (the samples' text; empty for a generic sample)}",
),
(
"retype.preview",
+17
View File
@@ -2005,6 +2005,23 @@ fn sample_texture(ctx: &egui::Context, family: &str, style: Option<&str>, sample
s.ready.insert(key, tex.clone());
return tex;
}
if s.pending.len() >= MAX_PENDING {
// Finished samples join the ready ones, so samples nobody asks for again (their
// text or size changed) do not keep new ones from starting.
let mut done = vec![];
for (k, rx) in &s.pending {
match rx.try_recv() {
Err(std::sync::mpsc::TryRecvError::Empty) => {}
Ok(img) => done.push((k.clone(), img)),
Err(std::sync::mpsc::TryRecvError::Disconnected) => done.push((k.clone(), None)),
}
}
for (k, img) in done {
s.pending.remove(&k);
let tex = img.map(|img| ctx.load_texture(format!("font-sample-{}-{}", k.0, k.3), img, egui::TextureOptions::LINEAR));
s.ready.insert(k, tex);
}
}
if s.pending.len() >= MAX_PENDING || !s.take_budget(ctx) {
return None;
}
+24
View File
@@ -1729,3 +1729,27 @@ fn a_new_preview_size_keeps_the_list_on_its_rows() {
assert!((large.0 - expected).abs() < 0.5, "the view starts {rows_down} rows down: offset {} for {expected}", large.0);
super::wait_for_samples(&ctx);
}
/// Finished samples that are not drawn again (the sample text changed while they rendered) do not
/// keep new samples from starting.
#[cfg(not(target_arch = "wasm32"))]
#[test]
fn finished_samples_no_longer_drawn_do_not_block_new_ones() {
let ctx = egui::Context::default();
super::SAMPLES.with(|s| {
let mut s = s.borrow_mut();
for i in 0..super::MAX_PENDING {
let (tx, rx) = std::sync::mpsc::channel();
tx.send(None).unwrap();
s.pending.insert((format!("Old {i}"), "Regular".to_string(), "typed".to_string(), 20), rx);
}
});
assert!(super::sample_texture(&ctx, "Source Sans 3", Some("Regular"), Some("typed more"), 20.0).is_none());
let (started, kept) = super::SAMPLES.with(|s| {
let s = s.borrow();
(s.pending.keys().any(|k| k.2 == "typed more"), s.ready.keys().filter(|k| k.0.starts_with("Old ")).count())
});
assert!(started, "the new sample is rendering");
assert_eq!(kept, super::MAX_PENDING, "the finished samples are kept");
super::wait_for_samples(&ctx);
}
+2
View File
@@ -1262,12 +1262,14 @@ font-technology Variable Променливи
Type your text to preview Въведете текст за преглед
Select outlined text, then Find Matching Fonts. Изберете текст, превърнат в контури, след това „Търсене на съответстващи шрифтове“.
No font matches the selected shapes. Никой шрифт не съответства на избраните фигури.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Фигурите след първите 2048 или вложени на повече от 16 нива групи не бяха сравнени.
Reset Retype Panel Нулиране на панела „Повторно набиране“
List Matching Fonts Списък на съответстващите шрифтове
Retype Preview Преглед в панела „Повторно набиране“
@msg `count` must be a whole number from 1 to 96 `count` трябва да е цяло число от 1 до 96
@msg `size` must be small, medium or large `size` трябва да е small, medium или large
@msg `text` must be a string of at most 100 characters `text` трябва да е низ с най-много 100 знака
@msg Retype: select outlined text (paths or compound paths) Повторно набиране: изберете текст, превърнат в контури (пътища или съставни пътища)
Find Next Търсене на следващ
Find Objects Търсене на обекти
Compare with Image Сравняване с изображение
Can't render this file because it is too large.
+2
View File
@@ -428,12 +428,14 @@
Type your text to preview Upišite tekst za pregled
Select outlined text, then Find Matching Fonts. Odaberite tekst pretvoren u obrise, zatim Pronađi odgovarajuće fontove.
No font matches the selected shapes. Nijedan font ne odgovara odabranim oblicima.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Oblici nakon prvih 2.048, ili dublje od 16 grupa, nisu upoređeni.
Reset Retype Panel Vrati panel Ponovo otkucaj na početno
List Matching Fonts Prikaži odgovarajuće fontove
Retype Preview Pregled u panelu Ponovo otkucaj
@msg `count` must be a whole number from 1 to 96 `count` mora biti cijeli broj od 1 do 96
@msg `size` must be small, medium or large `size` mora biti small, medium ili large
@msg `text` must be a string of at most 100 characters `text` mora biti niz od najviše 100 znakova
@msg Retype: select outlined text (paths or compound paths) Ponovo otkucaj: odaberite tekst pretvoren u obrise (putanje ili složene putanje)
Change Case Promijeni veličinu slova
UPPERCASE VELIKA SLOVA
lowercase mala slova
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -1779,12 +1779,14 @@ digits Malayalam Malaiàlam
Type your text to preview Escriviu el text de la previsualització
Select outlined text, then Find Matching Fonts. Seleccioneu text contornejat i després Cerca tipus de lletra coincidents.
No font matches the selected shapes. Cap tipus de lletra no coincideix amb les formes seleccionades.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Les formes després de les primeres 2.048, o a més de 16 grups de profunditat, no s’han comparat.
Reset Retype Panel Restableix el panell Torna a escriure
List Matching Fonts Llista els tipus de lletra coincidents
Retype Preview Previsualització del panell Torna a escriure
@msg `count` must be a whole number from 1 to 96 `count` ha de ser un nombre enter entre 1 i 96
@msg `size` must be small, medium or large `size` ha de ser small, medium o large
@msg `text` must be a string of at most 100 characters `text` ha de ser una cadena de 100 caràcters com a màxim
@msg Retype: select outlined text (paths or compound paths) Torna a escriure: seleccioneu text contornejat (camins o camins compostos)
Find in Folder… Cerca en una carpeta…
Find Linked Files Cerca fitxers enllaçats
Find Linked Files in Folder… Cerca fitxers enllaçats en una carpeta…
Can't render this file because it is too large.
+2
View File
@@ -433,12 +433,14 @@
Type your text to preview Zadejte text pro náhled
Select outlined text, then Find Matching Fonts. Vyberte text převedený na křivky a pak zvolte Najít odpovídající písma.
No font matches the selected shapes. Vybraným tvarům neodpovídá žádné písmo.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Tvary za prvními 2 048 nebo vnořené hlouběji než 16 skupin nebyly porovnány.
Reset Retype Panel Obnovit panel Přepsat
List Matching Fonts Vypsat odpovídající písma
Retype Preview Náhled v panelu Přepsat
@msg `count` must be a whole number from 1 to 96 `count` musí být celé číslo od 1 do 96
@msg `size` must be small, medium or large `size` musí být small, medium nebo large
@msg `text` must be a string of at most 100 characters `text` musí být řetězec o nejvýše 100 znacích
@msg Retype: select outlined text (paths or compound paths) Přepsat: vyberte text převedený na křivky (cesty nebo složené cesty)
Change Case Změnit velikost písmen
UPPERCASE VELKÁ PÍSMENA
lowercase malá písmena
Can't render this file because it is too large.
+2
View File
@@ -3127,12 +3127,14 @@ liquify-list-end {0}, {1} {0} og {1}
Type your text to preview Skriv teksten til forhåndsvisningen
Select outlined text, then Find Matching Fonts. Markér tekst konverteret til konturer, og vælg derefter Find matchende skrifttyper.
No font matches the selected shapes. Ingen skrifttype matcher de markerede former.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Former ud over de første 2.048 eller mere end 16 grupper dybt blev ikke sammenlignet.
Reset Retype Panel Nulstil panelet Genindtast
List Matching Fonts Vis matchende skrifttyper
Retype Preview Forhåndsvisning i panelet Genindtast
@msg `count` must be a whole number from 1 to 96 `count` skal være et heltal fra 1 til 96
@msg `size` must be small, medium or large `size` skal være small, medium eller large
@msg `text` must be a string of at most 100 characters `text` skal være en streng på højst 100 tegn
@msg Retype: select outlined text (paths or compound paths) Genindtast: markér tekst konverteret til konturer (stier eller sammensatte stier)
Change Case Ændr store/små bogstaver
UPPERCASE STORE BOGSTAVER
lowercase små bogstaver
Can't render this file because it is too large.
+2
View File
@@ -1301,12 +1301,14 @@ font-technology Variable Variabel
Type your text to preview Text für die Vorschau eingeben
Select outlined text, then Find Matching Fonts. Wählen Sie in Pfade umgewandelten Text aus und dann „Passende Schriften suchen“.
No font matches the selected shapes. Keine Schrift passt zu den ausgewählten Formen.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Formen nach den ersten 2.048 oder mehr als 16 Gruppen tief wurden nicht verglichen.
Reset Retype Panel Bedienfeld „Neu setzen“ zurücksetzen
List Matching Fonts Passende Schriften auflisten
Retype Preview Vorschau im Bedienfeld „Neu setzen“
@msg `count` must be a whole number from 1 to 96 `count` muss eine ganze Zahl von 1 bis 96 sein
@msg `size` must be small, medium or large `size` muss small, medium oder large sein
@msg `text` must be a string of at most 100 characters `text` muss eine Zeichenfolge mit höchstens 100 Zeichen sein
@msg Retype: select outlined text (paths or compound paths) Neu setzen: Wählen Sie in Pfade umgewandelten Text aus (Pfade oder zusammengesetzte Pfade)
Find Next Weitersuchen
Find Objects Objekte suchen
Compare with Image Mit Bild vergleichen
Can't render this file because it is too large.
+2
View File
@@ -1251,12 +1251,14 @@ font-technology Variable Μεταβλητές
Type your text to preview Πληκτρολογήστε κείμενο για προεπισκόπηση
Select outlined text, then Find Matching Fonts. Επιλέξτε κείμενο που έχει μετατραπεί σε περιγράμματα και μετά Εύρεση αντίστοιχων γραμματοσειρών.
No font matches the selected shapes. Καμία γραμματοσειρά δεν αντιστοιχεί στα επιλεγμένα σχήματα.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Τα σχήματα μετά τα πρώτα 2.048 ή σε βάθος πάνω από 16 ομάδες δεν συγκρίθηκαν.
Reset Retype Panel Επαναφορά πίνακα Επαναπληκτρολόγησης
List Matching Fonts Λίστα αντίστοιχων γραμματοσειρών
Retype Preview Προεπισκόπηση πίνακα Επαναπληκτρολόγησης
@msg `count` must be a whole number from 1 to 96 Το `count` πρέπει να είναι ακέραιος από 1 έως 96
@msg `size` must be small, medium or large Το `size` πρέπει να είναι small, medium ή large
@msg `text` must be a string of at most 100 characters Το `text` πρέπει να είναι συμβολοσειρά έως 100 χαρακτήρων
@msg Retype: select outlined text (paths or compound paths) Επαναπληκτρολόγηση: επιλέξτε κείμενο που έχει μετατραπεί σε περιγράμματα (διαδρομές ή σύνθετες διαδρομές)
Find Next Εύρεση επόμενου
Find Objects Εύρεση αντικειμένων
Compare with Image Σύγκριση με εικόνα
Can't render this file because it is too large.
+2
View File
@@ -1326,12 +1326,14 @@ font-technology Variable Variables
Type your text to preview Escriba el texto de la vista previa
Select outlined text, then Find Matching Fonts. Seleccione texto contorneado y luego Buscar fuentes coincidentes.
No font matches the selected shapes. Ninguna fuente coincide con las formas seleccionadas.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Las formas después de las primeras 2048, o a más de 16 grupos de profundidad, no se compararon.
Reset Retype Panel Restablecer panel Reescribir
List Matching Fonts Enumerar fuentes coincidentes
Retype Preview Vista previa del panel Reescribir
@msg `count` must be a whole number from 1 to 96 `count` debe ser un número entero entre 1 y 96
@msg `size` must be small, medium or large `size` debe ser small, medium o large
@msg `text` must be a string of at most 100 characters `text` debe ser una cadena de 100 caracteres como máximo
@msg Retype: select outlined text (paths or compound paths) Reescribir: seleccione texto contorneado (trazados o trazados compuestos)
Find Next Buscar siguiente
Find Objects Buscar objetos
Compare with Image Comparar con imagen
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -430,12 +430,14 @@
Type your text to preview Kirjoita esikatseltava teksti
Select outlined text, then Find Matching Fonts. Valitse ääriviivoiksi muunnettu teksti ja sitten Etsi vastaavat fontit.
No font matches the selected shapes. Mikään fontti ei vastaa valittuja muotoja.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Ensimmäisten 2 048 jälkeisiä tai yli 16 ryhmän syvyydellä olevia muotoja ei verrattu.
Reset Retype Panel Palauta Kirjoita uudelleen -paneeli
List Matching Fonts Luettele vastaavat fontit
Retype Preview Kirjoita uudelleen -paneelin esikatselu
@msg `count` must be a whole number from 1 to 96 `count` on oltava kokonaisluku 1–96
@msg `size` must be small, medium or large `size` on oltava small, medium tai large
@msg `text` must be a string of at most 100 characters `text` on oltava enintään 100 merkin merkkijono
@msg Retype: select outlined text (paths or compound paths) Kirjoita uudelleen: valitse ääriviivoiksi muunnettu teksti (polut tai yhdistelmäpolut)
Change Case Vaihda kirjainkoko
UPPERCASE ISOT KIRJAIMET
lowercase pienet kirjaimet
Can't render this file because it contains an unexpected character in line 2 and column 73.
+2
View File
@@ -1316,12 +1316,14 @@ font-technology Variable Variables
Type your text to preview Saisissez le texte à prévisualiser
Select outlined text, then Find Matching Fonts. Sélectionnez du texte vectorisé, puis Rechercher les polices correspondantes.
No font matches the selected shapes. Aucune police ne correspond aux formes sélectionnées.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Les formes au-delà des 2 048 premières, ou à plus de 16 niveaux de groupe, n’ont pas été comparées.
Reset Retype Panel Réinitialiser le panneau Retaper
List Matching Fonts Lister les polices correspondantes
Retype Preview Aperçu du panneau Retaper
@msg `count` must be a whole number from 1 to 96 `count` doit être un nombre entier compris entre 1 et 96
@msg `size` must be small, medium or large `size` doit valoir small, medium ou large
@msg `text` must be a string of at most 100 characters `text` doit être une chaîne d’au plus 100 caractères
@msg Retype: select outlined text (paths or compound paths) Pour Retaper, sélectionnez du texte vectorisé (tracés ou tracés composés)
Find Next Rechercher le suivant
Find Objects Rechercher des objets
Compare with Image Comparer à une image
Can't render this file because it is too large.
+2
View File
@@ -1435,12 +1435,14 @@
Type your text to preview પૂર્વાવલોકન માટે તમારું લખાણ ટાઇપ કરો
Select outlined text, then Find Matching Fonts. આઉટલાઇન કરેલું લખાણ પસંદ કરો, પછી મેળ ખાતા ફૉન્ટ શોધો.
No font matches the selected shapes. કોઈ ફૉન્ટ પસંદ કરેલા આકારો સાથે મેળ ખાતો નથી.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. પહેલા 2,048 પછીના, અથવા 16 થી વધુ જૂથ ઊંડે આવેલા આકારો સરખાવ્યા નથી.
Reset Retype Panel ફરી ટાઇપ કરો પેનલ રીસેટ કરો
List Matching Fonts મેળ ખાતા ફૉન્ટની યાદી
Retype Preview ફરી ટાઇપ કરો પેનલનું પૂર્વાવલોકન
@msg `count` must be a whole number from 1 to 96 `count` 1 થી 96 સુધીની પૂર્ણ સંખ્યા હોવી જોઈએ
@msg `size` must be small, medium or large `size` small, medium અથવા large હોવું જોઈએ
@msg `text` must be a string of at most 100 characters `text` વધુમાં વધુ 100 અક્ષરોની સ્ટ્રિંગ હોવી જોઈએ
@msg Retype: select outlined text (paths or compound paths) ફરી ટાઇપ કરો: આઉટલાઇન કરેલું લખાણ પસંદ કરો (પાથ અથવા કમ્પાઉન્ડ પાથ)
Find In આમાં શોધો
Find Linked Files લિંક્ડ ફાઇલો શોધો
Find Linked Files in Folder… ફોલ્ડરમાં લિંક્ડ ફાઇલો શોધો…
Can't render this file because it contains an unexpected character in line 72 and column 5.
+2
View File
@@ -1971,12 +1971,14 @@ antiAlias Sharp शार्प
Type your text to preview प्रीव्यू के लिए अपना टेक्स्ट टाइप करें
Select outlined text, then Find Matching Fonts. आउटलाइन किया गया टेक्स्ट चुनें, फिर मिलते-जुलते फ़ॉन्ट खोजें।
No font matches the selected shapes. कोई फ़ॉन्ट चुने गए आकारों से मेल नहीं खाता।
Shapes past the first 2,048, or more than 16 groups deep, were not compared. पहले 2,048 के बाद के, या 16 से अधिक समूहों की गहराई वाले आकारों की तुलना नहीं की गई।
Reset Retype Panel फिर से टाइप करें पैनल रीसेट करें
List Matching Fonts मिलते-जुलते फ़ॉन्ट की सूची
Retype Preview फिर से टाइप करें पैनल का प्रीव्यू
@msg `count` must be a whole number from 1 to 96 `count` 1 से 96 तक पूरी संख्या होना चाहिए
@msg `size` must be small, medium or large `size` को small, medium या large होना चाहिए
@msg `text` must be a string of at most 100 characters `text` अधिकतम 100 वर्णों की स्ट्रिंग होनी चाहिए
@msg Retype: select outlined text (paths or compound paths) फिर से टाइप करें: आउटलाइन किया गया टेक्स्ट चुनें (पाथ या कंपाउंड पाथ)
Find Fonts फाइंड फ़ॉन्ट
Find Fonts in Folder… फ़ोल्डर में फ़ॉन्ट खोजें…
Find in Folder… फ़ोल्डर में खोजें…
Can't render this file because it is too large.
+2
View File
@@ -1641,12 +1641,14 @@ digits Malayalam Malajálam
Type your text to preview Írja be az előnézet szövegét
Select outlined text, then Find Matching Fonts. Jelöljön ki körvonalakká alakított szöveget, majd válassza az Egyező betűtípusok keresése parancsot.
No font matches the selected shapes. Egyik betűtípus sem egyezik a kijelölt alakzatokkal.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Az első 2048 utáni, illetve 16 csoportnál mélyebben lévő alakzatok összehasonlítása elmaradt.
Reset Retype Panel Újragépelés panel visszaállítása
List Matching Fonts Egyező betűtípusok listázása
Retype Preview Újragépelés panel előnézete
@msg `count` must be a whole number from 1 to 96 `count`: 1 és 96 közötti egész szám kell
@msg `size` must be small, medium or large `size`: small, medium vagy large kell
@msg `text` must be a string of at most 100 characters `text`: legfeljebb 100 karakteres karakterlánc kell
@msg Retype: select outlined text (paths or compound paths) Újragépelés: jelöljön ki körvonalakká alakított szöveget (útvonalakat vagy összetett útvonalakat)
Find in Folder… Keresés mappában…
Find Next Következő keresése
Find Objects Objektumok keresése
Can't render this file because it is too large.
+2
View File
@@ -396,12 +396,14 @@
Type your text to preview Ketik teks untuk pratinjau
Select outlined text, then Find Matching Fonts. Pilih teks yang sudah dijadikan kerangka, lalu Temukan font yang cocok.
No font matches the selected shapes. Tidak ada font yang cocok dengan bentuk yang dipilih.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Bentuk setelah 2.048 pertama, atau lebih dalam dari 16 grup, tidak dibandingkan.
Reset Retype Panel Setel ulang panel Ketik Ulang
List Matching Fonts Daftar font yang cocok
Retype Preview Pratinjau panel Ketik Ulang
@msg `count` must be a whole number from 1 to 96 `count` harus bilangan bulat dari 1 sampai 96
@msg `size` must be small, medium or large `size` harus small, medium, atau large
@msg `text` must be a string of at most 100 characters `text` harus string dengan paling banyak 100 karakter
@msg Retype: select outlined text (paths or compound paths) Ketik Ulang: pilih teks yang sudah dijadikan kerangka (path atau path gabungan)
Change Case Ubah huruf besar-kecil
UPPERCASE HURUF BESAR
lowercase huruf kecil
1 # Indonesian (id) catalog. Same format as zh-hant.tsv: context <TAB> source <TAB> translation
396
397
398
399
400
401
402 @msg
403 @msg
404 @msg
405 @msg
406
407
408
409
+2
View File
@@ -1338,12 +1338,14 @@ font-technology Variable Variabili
Type your text to preview Digita il testo dell’anteprima
Select outlined text, then Find Matching Fonts. Seleziona testo vettorializzato, poi Trova font corrispondenti.
No font matches the selected shapes. Nessun font corrisponde alle forme selezionate.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Le forme oltre le prime 2.048, o a più di 16 gruppi di profondità, non sono state confrontate.
Reset Retype Panel Reimposta pannello Ridigita
List Matching Fonts Elenca font corrispondenti
Retype Preview Anteprima del pannello Ridigita
@msg `count` must be a whole number from 1 to 96 `count` deve essere un numero intero compreso tra 1 e 96
@msg `size` must be small, medium or large `size` deve essere small, medium o large
@msg `text` must be a string of at most 100 characters `text` deve essere una stringa di al massimo 100 caratteri
@msg Retype: select outlined text (paths or compound paths) Ridigita: seleziona testo vettorializzato (tracciati o tracciati composti)
Find Next Trova successivo
Find Objects Trova oggetti
Compare with Image Confronta con immagine
Can't render this file because it is too large.
+2
View File
@@ -481,12 +481,14 @@ digits Malayalam マラヤーラム数字
Type your text to preview プレビューするテキストを入力
Select outlined text, then Find Matching Fonts. アウトライン化したテキストを選択してから、一致するフォントを検索してください。
No font matches the selected shapes. 選択したシェイプに一致するフォントはありません。
Shapes past the first 2,048, or more than 16 groups deep, were not compared. 最初の 2,048 個より後のシェイプと、グループの入れ子が 16 階層より深いシェイプは比較していません。
Reset Retype Panel リタイプパネルをリセット
List Matching Fonts 一致するフォントの一覧
Retype Preview リタイプパネルのプレビュー
@msg `count` must be a whole number from 1 to 96 `count` には 1 から 96 の整数を指定してください
@msg `size` must be small, medium or large `size` には small、medium、large のいずれかを指定してください
@msg `text` must be a string of at most 100 characters `text` には 100 文字以内の文字列を指定してください
@msg Retype: select outlined text (paths or compound paths) リタイプ: アウトライン化したテキスト (パスまたは複合パス) を選択してください
Change Case 大文字と小文字の変更
UPPERCASE すべて大文字
lowercase すべて小文字
Can't render this file because it is too large.
+2
View File
@@ -2562,12 +2562,14 @@
Type your text to preview აკრიფეთ ტექსტი წინასწარი ნახვისთვის
Select outlined text, then Find Matching Fonts. მონიშნეთ კონტურებად გარდაქმნილი ტექსტი, შემდეგ აირჩიეთ შესაბამისი შრიფტების ძებნა.
No font matches the selected shapes. არცერთი შრიფტი არ შეესაბამება მონიშნულ ფიგურებს.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. პირველი 2048-ის შემდეგი ან 16 ჯგუფზე ღრმად მოთავსებული ფიგურები არ შედარდა.
Reset Retype Panel ხელახლა აკრეფის პანელის ჩამოყრა
List Matching Fonts შესაბამისი შრიფტების სია
Retype Preview ხელახლა აკრეფის პანელის წინასწარი ნახვა
@msg `count` must be a whole number from 1 to 96 `count` უნდა იყოს მთელი რიცხვი 1-დან 96-მდე
@msg `size` must be small, medium or large `size` უნდა იყოს small, medium ან large
@msg `text` must be a string of at most 100 characters `text` უნდა იყოს არაუმეტეს 100 სიმბოლოს სტრიქონი
@msg Retype: select outlined text (paths or compound paths) ხელახლა აკრეფა: მონიშნეთ კონტურებად გარდაქმნილი ტექსტი (კონტურები ან შედგენილი კონტურები)
Change Case რეგისტრის შეცვლა
UPPERCASE მთავრული
lowercase პატარა ასოები
Can't render this file because it is too large.
+2
View File
@@ -474,12 +474,14 @@ digits Malayalam 말라얄람어
Type your text to preview 미리 볼 텍스트 입력
Select outlined text, then Find Matching Fonts. 윤곽선으로 만든 텍스트를 선택한 다음 일치하는 글꼴 찾기를 누르세요.
No font matches the selected shapes. 선택한 모양과 일치하는 글꼴이 없습니다.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. 처음 2,048개 이후의 모양이나 16단계보다 깊은 그룹 안의 모양은 비교하지 않았습니다.
Reset Retype Panel 리타입 패널 재설정
List Matching Fonts 일치하는 글꼴 목록
Retype Preview 리타입 패널 미리 보기
@msg `count` must be a whole number from 1 to 96 `count`는 1에서 96 사이의 정수여야 합니다
@msg `size` must be small, medium or large `size`는 small, medium 또는 large여야 합니다
@msg `text` must be a string of at most 100 characters `text`는 최대 100자의 문자열이어야 합니다
@msg Retype: select outlined text (paths or compound paths) 리타입: 윤곽선으로 만든 텍스트(패스 또는 컴파운드 패스)를 선택하세요
Change Case 대소문자 변경
UPPERCASE 대문자
lowercase 소문자
Can't render this file because it is too large.
+2
View File
@@ -998,12 +998,14 @@ liquify-list-end {0}, {1} {0} en {1}
Type your text to preview Typ de tekst voor het voorbeeld
Select outlined text, then Find Matching Fonts. Selecteer omgezette tekst en kies dan Overeenkomende lettertypen zoeken.
No font matches the selected shapes. Geen lettertype komt overeen met de geselecteerde vormen.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Vormen na de eerste 2.048, of meer dan 16 groepen diep, zijn niet vergeleken.
Reset Retype Panel Paneel Opnieuw typen herstellen
List Matching Fonts Overeenkomende lettertypen weergeven
Retype Preview Voorbeeld in paneel Opnieuw typen
@msg `count` must be a whole number from 1 to 96 `count` moet een geheel getal van 1 tot 96 zijn
@msg `size` must be small, medium or large `size` moet small, medium of large zijn
@msg `text` must be a string of at most 100 characters `text` moet een tekenreeks van hoogstens 100 tekens zijn
@msg Retype: select outlined text (paths or compound paths) Opnieuw typen: selecteer omgezette tekst (paden of samengestelde paden)
Change Case Hoofdlettergebruik wijzigen
UPPERCASE HOOFDLETTERS
lowercase kleine letters
Can't render this file because it is too large.
+2
View File
@@ -392,12 +392,14 @@
Type your text to preview Wpisz tekst do podglądu
Select outlined text, then Find Matching Fonts. Zaznacz tekst zamieniony na kontury, a następnie wybierz Znajdź pasujące czcionki.
No font matches the selected shapes. Żadna czcionka nie pasuje do zaznaczonych kształtów.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Kształty po pierwszych 2048 lub zagnieżdżone głębiej niż 16 grup nie zostały porównane.
Reset Retype Panel Resetuj panel Przepisz
List Matching Fonts Wyświetl pasujące czcionki
Retype Preview Podgląd w panelu Przepisz
@msg `count` must be a whole number from 1 to 96 `count` musi być liczbą całkowitą od 1 do 96
@msg `size` must be small, medium or large `size` musi mieć wartość small, medium lub large
@msg `text` must be a string of at most 100 characters `text` musi być ciągiem o długości co najwyżej 100 znaków
@msg Retype: select outlined text (paths or compound paths) Przepisz: zaznacz tekst zamieniony na kontury (ścieżki lub ścieżki złożone)
Change Case Zmień wielkość liter
UPPERCASE WIELKIE LITERY
lowercase małe litery
Can't render this file because it is too large.
+2
View File
@@ -1208,12 +1208,14 @@ antiAlias Sharp Nítido
Type your text to preview Digite o texto da visualização
Select outlined text, then Find Matching Fonts. Selecione texto contornado e depois Localizar Fontes Correspondentes.
No font matches the selected shapes. Nenhuma fonte corresponde às formas selecionadas.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. As formas além das primeiras 2.048, ou a mais de 16 grupos de profundidade, não foram comparadas.
Reset Retype Panel Redefinir Painel Redigitar
List Matching Fonts Listar Fontes Correspondentes
Retype Preview Visualização do Painel Redigitar
@msg `count` must be a whole number from 1 to 96 `count` deve ser um número inteiro de 1 a 96
@msg `size` must be small, medium or large `size` deve ser small, medium ou large
@msg `text` must be a string of at most 100 characters `text` deve ser uma string de no máximo 100 caracteres
@msg Retype: select outlined text (paths or compound paths) Redigitar: selecione texto contornado (demarcadores ou demarcadores compostos)
Find Next Localizar Próximo
Find and Replace… Localizar e Substituir…
First Page Primeira Página
Can't render this file because it is too large.
+2
View File
@@ -1324,12 +1324,14 @@ font-technology Variable Вариативные
Type your text to preview Введите текст для просмотра
Select outlined text, then Find Matching Fonts. Выделите текст, преобразованный в кривые, затем выберите «Найти подходящие шрифты».
No font matches the selected shapes. Ни один шрифт не подходит к выделенным фигурам.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Фигуры после первых 2048 или вложенные глубже 16 уровней групп не сравнивались.
Reset Retype Panel Сбросить панель «Перенабор»
List Matching Fonts Список подходящих шрифтов
Retype Preview Просмотр в панели «Перенабор»
@msg `count` must be a whole number from 1 to 96 `count` должно быть целым числом от 1 до 96
@msg `size` must be small, medium or large `size` должно быть small, medium или large
@msg `text` must be a string of at most 100 characters `text` должно быть строкой длиной не более 100 символов
@msg Retype: select outlined text (paths or compound paths) Перенабор: выделите текст, преобразованный в кривые (контуры или составные контуры)
Find Next Найти далее
Find Objects Найти объекты
Compare with Image Сравнить с изображением
Can't render this file because it is too large.
+2
View File
@@ -1285,12 +1285,14 @@ font-technology Variable Variabla
Type your text to preview Skriv texten för förhandsgranskningen
Select outlined text, then Find Matching Fonts. Markera text som gjorts om till konturer och välj sedan Sök matchande typsnitt.
No font matches the selected shapes. Inget typsnitt matchar de markerade formerna.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Former efter de första 2 048, eller mer än 16 grupper djupt, jämfördes inte.
Reset Retype Panel Återställ panelen Skriv om
List Matching Fonts Lista matchande typsnitt
Retype Preview Förhandsgranskning i panelen Skriv om
@msg `count` must be a whole number from 1 to 96 `count` måste vara ett heltal från 1 till 96
@msg `size` must be small, medium or large `size` måste vara small, medium eller large
@msg `text` must be a string of at most 100 characters `text` måste vara en sträng på högst 100 tecken
@msg Retype: select outlined text (paths or compound paths) Skriv om: markera text som gjorts om till konturer (banor eller sammansatta banor)
Find Next Sök nästa
Find Objects Sök objekt
Compare with Image Jämför med bild
Can't render this file because it is too large.
+2
View File
@@ -2902,6 +2902,7 @@ fn retype_panel_strings_are_in_complete_catalogs() {
"Type your text to preview",
"Select outlined text, then Find Matching Fonts.",
"No font matches the selected shapes.",
"Shapes past the first 2,048, or more than 16 groups deep, were not compared.",
"Reset Retype Panel",
"List Matching Fonts",
"Retype Preview",
@@ -2917,6 +2918,7 @@ fn retype_panel_strings_are_in_complete_catalogs() {
"`count` must be a whole number from 1 to 96",
"`size` must be small, medium or large",
"`text` must be a string of at most 100 characters",
"Retype: select outlined text (paths or compound paths)",
] {
if message(lang, m) == m {
missing.push(format!("{code} @msg {m}"));
+2
View File
@@ -1275,12 +1275,14 @@ font-technology Variable Değişken
Type your text to preview Önizleme için metninizi yazın
Select outlined text, then Find Matching Fonts. Anahatlara dönüştürülmüş metni seçin, ardından Eşleşen Yazı Tiplerini Bul komutunu seçin.
No font matches the selected shapes. Seçili şekillerle eşleşen yazı tipi yok.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. İlk 2.048 şeklin ötesindeki veya 16 gruptan daha derindeki şekiller karşılaştırılmadı.
Reset Retype Panel Yeniden Yaz Panelini Sıfırla
List Matching Fonts Eşleşen Yazı Tiplerini Listele
Retype Preview Yeniden Yaz Paneli Önizlemesi
@msg `count` must be a whole number from 1 to 96 `count` 1 ile 96 arasında bir tam sayı olmalıdır
@msg `size` must be small, medium or large `size` small, medium veya large olmalıdır
@msg `text` must be a string of at most 100 characters `text` en fazla 100 karakterlik bir dize olmalıdır
@msg Retype: select outlined text (paths or compound paths) Yeniden Yaz: anahatlara dönüştürülmüş metni seçin (yollar veya bileşik yollar)
Find Next Sonrakini Bul
Find Objects Nesneleri Bul
Compare with Image Görüntüyle Karşılaştır
Can't render this file because it is too large.
+2
View File
@@ -1332,12 +1332,14 @@ font-technology Variable Варіативні
Type your text to preview Введіть текст для перегляду
Select outlined text, then Find Matching Fonts. Виділіть текст, перетворений на криві, потім виберіть «Знайти відповідні шрифти».
No font matches the selected shapes. Жоден шрифт не відповідає виділеним фігурам.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Фігури після перших 2048 або вкладені глибше 16 рівнів груп не порівнювалися.
Reset Retype Panel Скинути панель «Повторний набір»
List Matching Fonts Список відповідних шрифтів
Retype Preview Перегляд у панелі «Повторний набір»
@msg `count` must be a whole number from 1 to 96 `count` має бути цілим числом від 1 до 96
@msg `size` must be small, medium or large `size` має бути small, medium або large
@msg `text` must be a string of at most 100 characters `text` має бути рядком довжиною не більше 100 символів
@msg Retype: select outlined text (paths or compound paths) Повторний набір: виділіть текст, перетворений на криві (контури або складені контури)
Find Next Знайти далі
Find Objects Знайти об’єкти
Compare with Image Порівняти із зображенням
Can't render this file because it is too large.
+2
View File
@@ -1554,12 +1554,14 @@ digits Malayalam Malayalam
Type your text to preview Nhập văn bản để xem trước
Select outlined text, then Find Matching Fonts. Chọn văn bản đã chuyển thành đường viền, rồi Tìm phông khớp.
No font matches the selected shapes. Không có phông nào khớp với các hình đã chọn.
Shapes past the first 2,048, or more than 16 groups deep, were not compared. Các hình sau 2.048 hình đầu tiên, hoặc sâu hơn 16 nhóm, không được so sánh.
Reset Retype Panel Đặt lại bảng Gõ lại
List Matching Fonts Liệt kê phông khớp
Retype Preview Xem trước trong bảng Gõ lại
@msg `count` must be a whole number from 1 to 96 `count` phải là số nguyên từ 1 đến 96
@msg `size` must be small, medium or large `size` phải là small, medium hoặc large
@msg `text` must be a string of at most 100 characters `text` phải là chuỗi tối đa 100 ký tự
@msg Retype: select outlined text (paths or compound paths) Gõ lại: chọn văn bản đã chuyển thành đường viền (đường dẫn hoặc đường dẫn phức hợp)
Find in Folder… Tìm trong thư mục…
Find Linked Files Tìm tệp liên kết
Find Linked Files in Folder… Tìm tệp liên kết trong thư mục…
Can't render this file because it is too large.
+2
View File
@@ -1269,12 +1269,14 @@ antiAlias Sharp 锐利
Type your text to preview 输入要预览的文本
Select outlined text, then Find Matching Fonts. 选择已转为轮廓的文字,然后查找匹配字体。
No font matches the selected shapes. 没有字体与所选形状匹配。
Shapes past the first 2,048, or more than 16 groups deep, were not compared. 前 2,048 个之后的形状,以及嵌套超过 16 层编组的形状,未进行比较。
Reset Retype Panel 重置重新键入面板
List Matching Fonts 列出匹配字体
Retype Preview 重新键入面板预览
@msg `count` must be a whole number from 1 to 96 `count` 必须是 1 到 96 之间的整数
@msg `size` must be small, medium or large `size` 必须是 small、medium 或 large
@msg `text` must be a string of at most 100 characters `text` 必须是不超过 100 个字符的字符串
@msg Retype: select outlined text (paths or compound paths) 重新键入:选择已转为轮廓的文字(路径或复合路径)
Find Next 查找下一个
Find Objects 查找对象
Compare with Image 与图像比较
Can't render this file because it is too large.
+2
View File
@@ -1303,12 +1303,14 @@ font-technology Variable 可變
Type your text to preview 輸入要預覽的文字
Select outlined text, then Find Matching Fonts. 選取已轉為外框的文字,然後尋找相符字體。
No font matches the selected shapes. 沒有字體與所選形狀相符。
Shapes past the first 2,048, or more than 16 groups deep, were not compared. 前 2,048 個之後的形狀,以及巢狀超過 16 層群組的形狀,未進行比較。
Reset Retype Panel 重設重新鍵入面板
List Matching Fonts 列出相符字體
Retype Preview 重新鍵入面板預覽
@msg `count` must be a whole number from 1 to 96 `count` 必須是介於 1 到 96 的整數
@msg `size` must be small, medium or large `size` 必須是 small、medium 或 large
@msg `text` must be a string of at most 100 characters `text` 必須是不超過 100 個字元的字串
@msg Retype: select outlined text (paths or compound paths) 重新鍵入:選取已轉為外框的文字(路徑或複合路徑)
Find Next 尋找下一個
Find Objects 尋找物件
Compare with Image 與影像比較
Can't render this file because it is too large.
+2 -2
View File
@@ -785,13 +785,13 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"retype.find",
"Find Matching Fonts",
"",
"{more?: bool} show the Retype panel and list the fonts whose glyphs the selected outlined text is, ranked as type.retypeFonts ranks them: ten, as Find Matching Fonts does, or with more: true the next five fonts the last search found (whatever is selected now; before any search, a first search), as Find more font matches does; the document does not change; a selection with no path or compound path, or a more that is not true or false, is an error and leaves the list as it was; returns what retype.list returns",
"{more?: bool} show the Retype panel and list the fonts whose glyphs match the selected outlined text, ranked as type.retypeFonts ranks them: ten, as Find Matching Fonts does, or with more: true the next five fonts the last search found (whatever is selected now; before any search, a first search), as Find more font matches does; the document does not change; a selection with no path or compound path, or a more that is not true or false, is an error and leaves the list as it was; returns what retype.list returns",
),
(
"retype.list",
"List Matching Fonts",
"",
"{} what the Retype panel shows: {searched (a search ran since the last reset), fonts: [{family, style, matched (shapes it matches)}], shapes (shapes the last search compared), more (more fonts match than the list holds), size: small|medium|large, text (the samples' text; empty for a generic sample)}",
"{} what the Retype panel shows: {searched (a search ran since the last reset), fonts: [{family, style, matched (shapes it matches)}], shapes (shapes the last search compared), more (more fonts match than the list holds), truncated (the last search left out shapes past type.retype's limits), size: small|medium|large, text (the samples' text; empty for a generic sample)}",
),
(
"retype.preview",
+12 -4
View File
@@ -1,5 +1,5 @@
//! Retype panel (Window › Retype): the fonts whose glyphs the selected outlined text is, ranked by
//! how many of its shapes each matches (`type.retypeFonts`), each with a sample
//! Retype panel (Window › Retype): the fonts whose glyphs match the selected outlined text, ranked
//! by how many of its shapes each matches (`type.retypeFonts`), each with a sample
//! (<https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/identify-fonts-using-retype.html>,
//! <https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/apply-retype-suggested-fonts-to-live-text.html>).
//! Find Matching Fonts lists ten, and Find more font matches at the end of the list five more. The
@@ -59,6 +59,9 @@ pub struct View {
pub rest: Vec<Found>,
/// The shapes the last search compared.
pub shapes: u64,
/// The last search left out shapes past `type.retype`'s limits (2,048 shapes, 16 nested
/// groups).
pub truncated: bool,
pub size: Size,
/// The samples' text (empty: a generic sample).
pub text: String,
@@ -92,6 +95,9 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
}
widgets::divider(ui);
let view = app.ui.retype.clone();
if view.searched && view.truncated {
widgets::dim_label(ui, tl!("Shapes past the first 2,048, or more than 16 groups deep, were not compared."));
}
if !view.searched {
widgets::dim_label(ui, tl!("Select outlined text, then Find Matching Fonts."));
} else if view.fonts.is_empty() {
@@ -176,7 +182,7 @@ pub(crate) fn command(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<R
"retype.preview" => preview(app, p),
"retype.reset" => {
let v = &mut app.ui.retype;
(v.searched, v.fonts, v.rest, v.shapes) = (false, vec![], vec![], 0);
(v.searched, v.fonts, v.rest, v.shapes, v.truncated) = (false, vec![], vec![], 0, false);
Ok(list(&app.ui.retype))
}
_ => return None,
@@ -184,13 +190,14 @@ pub(crate) fn command(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<R
}
/// `retype.list`: what the panel shows → `{searched, fonts: [{family, style, matched}], shapes,
/// more, size, text}`.
/// more, truncated, size, text}`.
fn list(v: &View) -> Value {
json!({
"searched": v.searched,
"fonts": v.fonts.iter().map(|f| json!({"family": f.family, "style": f.style, "matched": f.matched})).collect::<Vec<_>>(),
"shapes": v.shapes,
"more": !v.rest.is_empty(),
"truncated": v.truncated,
"size": size_name(v.size),
"text": v.text,
})
@@ -228,6 +235,7 @@ fn find(app: &mut VectorcraftApp, p: &Value) -> Result<Value, String> {
let rest = fonts.split_off(fonts.len().min(FIRST));
let v = &mut app.ui.retype;
(v.searched, v.fonts, v.rest, v.shapes) = (true, fonts, rest, r["shapes"].as_u64().unwrap_or(0));
v.truncated = r["truncated"].as_bool().unwrap_or(false);
Ok(list(&app.ui.retype))
}
+31 -2
View File
@@ -67,7 +67,11 @@ fn find_lists_the_matching_fonts_and_shows_the_panel() {
let r = app.run("retype.find", json!({})).unwrap();
assert_eq!(r["searched"], json!(true), "{r}");
assert_eq!(r["shapes"], json!(6));
assert_eq!(families(&r).first(), Some(&("Source Sans 3".to_string(), "Bold".to_string())), "{r}");
// The panel reads the app's shared font database, where other tests load renamed copies of the
// bundled fonts; a copy ties with its original, so the font is checked among the first rank.
let fonts = r["fonts"].as_array().unwrap();
let top = fonts.first().map(|f| f["matched"].clone());
assert!(fonts.iter().any(|f| f["family"] == json!("Source Sans 3") && f["style"] == json!("Bold") && Some(f["matched"].clone()) == top), "{r}");
assert!(families(&r).len() <= 10, "ten at first: {r}");
assert!(crate::panel_docking::showing(&app.ui, ID), "the panel shows");
assert!(app.session.active().unwrap().doc == before, "the document does not change");
@@ -146,7 +150,32 @@ fn preview_sets_the_size_and_text_and_reset_keeps_them() {
select(&mut app, &[g]);
app.run("retype.find", json!({})).unwrap();
let r = app.run("retype.reset", json!({})).unwrap();
assert_eq!(r, json!({"searched": false, "fonts": [], "shapes": 0, "more": false, "size": "large", "text": "Hamburg"}));
assert_eq!(r, json!({"searched": false, "fonts": [], "shapes": 0, "more": false, "truncated": false, "size": "large", "text": "Hamburg"}));
}
#[test]
fn a_search_that_left_out_shapes_says_so() {
let mut app = app();
let top = outlined(&mut app, json!({"x": 40, "y": 100, "text": "A", "size": 40}));
// B, nested deeper than Retype looks.
let mut deep = outlined(&mut app, json!({"x": 40, "y": 200, "text": "B", "size": 40}));
for _ in 0..20 {
select(&mut app, &[deep]);
deep = app.session.execute("object.group", &json!({})).unwrap()["id"].as_u64().unwrap();
}
select(&mut app, &[top, deep]);
let r = app.run("retype.find", json!({})).unwrap();
assert_eq!((r["shapes"].clone(), r["truncated"].clone()), (json!(1), json!(true)), "{r}");
let note = "Shapes past the first 2,048, or more than 16 groups deep, were not compared.";
let ctx = context();
frame(&mut app, &ctx, vec![], show);
assert!(frame(&mut app, &ctx, vec![], show).iter().any(|n| n.label() == Some(note) || n.value() == Some(note)), "the panel says so");
// A search that left nothing out, and a reset, clear it.
select(&mut app, &[top]);
assert_eq!(app.run("retype.find", json!({})).unwrap()["truncated"], json!(false));
select(&mut app, &[top, deep]);
app.run("retype.find", json!({})).unwrap();
assert_eq!(app.run("retype.reset", json!({})).unwrap()["truncated"], json!(false));
}
#[test]
+5 -4
View File
@@ -11489,7 +11489,7 @@ on an open path that are not drawn because they fall before the path's start can
## Retype panel
`type.retypeFonts {count?}` lists the fonts whose glyphs the selected outlined text is. It compares each selected path
`type.retypeFonts {count?}` lists the fonts whose glyphs match the selected outlined text. It compares each selected path
and compound path, inside groups too, with the glyphs of up to 96 loaded fonts, those of the document's live type
first, by the matching `type.retype` uses, and it counts only exact matches. When two versions of a font are loaded,
only the version its family and style name gives is compared, which is the version that choosing the font sets. The
@@ -11509,9 +11509,10 @@ was. Each row shows the font's family and style over a sample of the font. While
click on a row sets that font on it, as the font menus do; live type inside a selected group counts too. The list
stays when the selection changes.
`retype.list {}` → `{searched, fonts: [{family, style, matched}], shapes, more, size, text}`. `searched` is false
until a search runs and after a reset. `size` is `small`, `medium` or `large`, and `text` is the samples' text (empty
for a generic sample). The panel menu's Small, Medium and Large items and the sample field run
`retype.list {}` → `{searched, fonts: [{family, style, matched}], shapes, more, truncated, size, text}`. `searched` is
false until a search runs and after a reset. `truncated` is true when the last search left out shapes past the limits
of `type.retype` (2,048 shapes, 16 nested groups); the panel then says that some shapes were not compared.
`size` is `small`, `medium` or `large`, and `text` is the samples' text (empty for a generic sample). The panel menu's Small, Medium and Large items and the sample field run
`retype.preview {size?, text?}`. `text` holds at most 100 characters; any other value of either key is an error and
changes nothing. Reset Retype Panel in the panel menu runs `retype.reset {}`, which clears the list and keeps the size
and text. `retype.find`, `retype.preview` and `retype.reset` return what `retype.list` returns.
+1 -1
View File
@@ -56,7 +56,7 @@ against Illustrator's public documentation; **estimated** unless noted.
| Alt + numeric-keypad codes while typing (Windows: `Alt+0176` → °) | partial | #5108: on Windows the character Windows posts when Alt comes up after keypad digits is typed at the caret like any other, in the typing's undo step, and the keypad digits typed with Alt run no shortcut. With NumLock off the keypad keys (Insert, End, arrows, Clear, Home, Page Up/Down without the extended-key flag) count as digits too and don't move the caret (`windows_alt_codes` unit tests; neither NumLock on nor off has been tried on a Windows machine yet). `type.insert {code}` (Windows Alt+0 code, Windows-1252 for 128–159) and `{unicode}` (hex code point) insert a character by its code (`menucmds::insert_a_character_by_its_code`). macOS and Linux have no such system convention and egui reports a keypad digit as the top-row digit, so there it does nothing; a floating panel window doesn't receive the character |
| Caret: the arrows and Delete step over whole clusters (Thai consonant with its marks, combining accents, emoji); Backspace removes one character | done | in text with right-to-left characters the arrows move in visual order and stop on both sides of a character drawn with no width, such as a zero width non-joiner |
| Touch Type tool | done | moves, scales and rotates one character through its kerning, baseline shift, scales and rotation (`text.touchType`); a character with a preceding logical character on the same line can move along the line in either reading direction; the first logical character moves only up and down. Positive `dx` follows reading order. These direction rules are VectorCraft's choices. |
| Retype (identify fonts in outlines/images) | partial | Phase 1 (#4934): Type › Retype (`type.retype`) turns outlined glyphs back into point text when each shape is exactly a glyph of a loaded font, a font the document uses or a family named in `fonts` (the same up to uniform scale, rotation and translation): one object per line, in that font and size, at the same baseline and turn, with the first glyph's fill and stroke, in one undo step; shapes that match no font stay as they are and are reported. Window › Retype shows the Retype panel, which lists the fonts the selected outlined text exactly matches, with samples, and sets a listed font on selected live type (`retype.find`, `type.retypeFonts`). Missing (phase 2): near or fuzzy matches (another version of the font, simplified outlines, glyphs merged into one path), filtering the list by font source, installed fonts not yet loaded, area text for several lines, tracking, text in images. Public behaviour: [identify fonts](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/identify-fonts-using-retype.html), [apply to live text](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/apply-retype-suggested-fonts-to-live-text.html) |
| Retype (identify fonts in outlines/images) | partial | Phase 1 (#4934): Type › Retype (`type.retype`) turns outlined glyphs back into point text when each shape is exactly a glyph of a loaded font, a font the document uses or a family named in `fonts` (the same up to uniform scale, rotation and translation): one object per line, in that font and size, at the same baseline and turn, with the first glyph's fill and stroke, in one undo step; shapes that match no font stay as they are and are reported. Window › Retype shows the Retype panel, which lists the fonts the selected outlined text exactly matches, with samples, and sets a listed font on selected live type (`retype.find`, `type.retypeFonts`). Missing (phase 2): near or fuzzy matches (another version of the font, simplified outlines, glyphs merged into one path), opening the panel from the Type menu, the context menu and the Properties panel's Quick Actions, filtering the list by font source and favorites, installed fonts not yet loaded, area text for several lines, tracking, text in images. Public behaviour: [identify fonts](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/identify-fonts-using-retype.html), [apply to live text](https://helpx.adobe.com/illustrator/desktop/design-with-text/fonts-and-scripts/apply-retype-suggested-fonts-to-live-text.html) |
| Snap to Glyph | done | View › Snap to Glyph (`view.snapToGlyph`): with Smart Guides on, new point type and drawing tools snap to live-text baselines and glyph bounds, the corners of each glyph's box included, turning with rotated type (#5112; `guides::tests::a_drawn_point_lands_on_a_corner_of_a_glyphs_bounds`, `Targets::for_drawing`, `tools::text_tests::snap_to_glyph_lines_up_new_point_type_with_a_baseline`). With Alignment Guides on as well, and Snap to Grid and Snap to Pixel off, both ends of a Measure or Measure & Inspect drag snap to those guides and show them during the drag (`Targets::for_measure`, `xform::measure::tests::its_ends_land_on_glyph_guides_with_snap_to_glyph`). That the Measure tools take the guides is VectorCraft's choice; they leave out Anchor Point, which [the help page](https://helpx.adobe.com/illustrator/desktop/design-with-text/special-characters-glyphs/snap-to-glyph.html) limits to the Pen tool and objects moved with the Selection tool. Character panel menu › Show Snap to Glyph Options: Baseline, x-height, Glyph Bounds, Proximity Guides, Angular Guides and Anchor Point each turn their guides on or off (`view.snapToGlyph.options`, all on by default; #4232), after a Snap to Glyph checkbox for View › Snap to Glyph; showing them scrolls the panel to them (#5273) |
| Thai, Lao, Khmer, Myanmar: shaping (marks, reordering), lines broken between words, word-by-word caret and double-click | done | words found by ICU4X's line segmenter: dictionaries on the desktop, LSTM models on the web |
| Middle Eastern: bidirectional layout, Paragraph Direction | done | 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 still needs ActualText support (#6165); separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence. |