Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
Photo text: a font list that works, and fonts of your own (#174)
chethan61676a39e8c7542
diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoEditor.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoEditor.ktindex e846786..2072a4e 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoEditor.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoEditor.kt@@ -108,6 +108,10 @@ import androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.platform.LocalDensityimport androidx.compose.ui.platform.LocalSoftwareKeyboardControllerimport androidx.compose.ui.res.stringResource+import androidx.compose.ui.layout.boundsInWindow+import androidx.compose.ui.layout.onGloballyPositioned+import androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.semanticsimport androidx.compose.ui.text.TextStyleimport androidx.compose.ui.text.font.FontFamilyimport androidx.compose.ui.text.font.FontWeight@@ -220,12 +224,13 @@ private fun fit(area: IntSize, w: Float, h: Float, margin: Float = 0f): RectF? {return RectF(left, top, left + w * k, top + h * k)}-private fun fontFamily(i: Int) = when (i) {- 1 -> FontFamily.Serif- 2 -> FontFamily.Monospace- 3 -> FontFamily.Cursive- else -> FontFamily.SansSerif-}+private fun fontFamily(i: Int): FontFamily = LabelFonts.family(i)++/** What the system's file picker offers for a font of the user's own. */+private val FontMimeTypes = arrayOf(+ "font/ttf", "font/otf", "font/sfnt", "font/collection", "application/x-font-ttf", "application/x-font-otf",+ "application/font-sfnt", "application/vnd.ms-opentype", "application/x-font-truetype", "application/octet-stream",+)private fun decodeMutable(file: File): Bitmap {val opts = BitmapFactory.Options().apply { inMutable = true }@@ -311,6 +316,28 @@ private fun PhotoEditScreen(var lastInk by remember { mutableIntStateOf(Color.White.toArgb()) }var lastStyle by remember { mutableIntStateOf(0) }var lastFont by remember { mutableIntStateOf(0) }+ // the font list, open for a label from the font button at a place on screen (#174)+ var fontMenu by remember { mutableStateOf<Pair<Label, androidx.compose.ui.geometry.Rect>?>(null) }+ var fontButton by remember { mutableStateOf(androidx.compose.ui.geometry.Rect.Zero) }+ val fontChoose = stringResource(R.string.photo_font_choose)+ val fontContext = androidx.compose.ui.platform.LocalContext.current+ remember { LabelFonts.init(fontContext) }+ // a font of the user's own: copied into the app, then on the label that asked for it+ var fontFor by remember { mutableStateOf<Label?>(null) }+ val fontNotUsable = stringResource(R.string.photo_font_unusable)+ val pickFont = androidx.activity.compose.rememberLauncherForActivityResult(androidx.activity.result.contract.ActivityResultContracts.OpenDocument()) { uri ->+ val target = fontFor+ fontFor = null+ if (uri != null) scope.launch {+ val i = LabelFonts.add(fontContext, uri)+ if (i == null) vm.tell(fontNotUsable)+ else if (target != null) {+ target.font = i+ lastFont = i+ marksVersion+++ }+ }+ }var cropping by remember { mutableStateOf(false) }var preview by remember(name) { mutableStateOf<Bitmap?>(null) }@@ -1008,18 +1035,55 @@ private fun PhotoEditScreen(}if (l != null) {Spacer(Modifier.weight(1f))- // the font, shown in itself+ // the font, shown in itself: opens the list of fonts (#174)Box(- Modifier.size(42.dp).clip(CircleShape).pressable({- l.font = (l.font + 1) % LABEL_FONTS- lastFont = l.font- marksVersion++- feel(Feel.Tick)- }, pressedScale = 0.88f),+ Modifier.size(42.dp).onGloballyPositioned { fontButton = it.boundsInWindow() }+ .clip(CircleShape).pressable({+ fontMenu = l to fontButton+ feel(Feel.Tick)+ }, pressedScale = 0.88f)+ .semantics { contentDescription = fontChoose },contentAlignment = Alignment.Center,) {Text(stringResource(R.string.photo_font_sample), style = TextStyle(fontFamily = fontFamily(if (marksVersion >= 0) l.font else 0), fontWeight = FontWeight.Bold, fontSize = 17.sp), color = ink.color)}+ fontMenu?.let { (forLabel, at) ->+ com.chethan616.clearpdf.ui.glass.GlassMenuLayout(at, { fontMenu = null }) {+ Spacer(Modifier.height(6.dp))+ val menuInk = com.chethan616.clearpdf.ui.glass.LocalGlassInk.current+ // each font's name in the font itself; the label's own one ticked+ for (i in 0 until LabelFonts.count) {+ Row(+ Modifier.fillMaxWidth().pressable({+ forLabel.font = i+ lastFont = i+ marksVersion+++ fontMenu = null+ }).padding(horizontal = 16.dp, vertical = 10.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Text(+ LabelFonts.name(i), style = TextStyle(fontFamily = LabelFonts.family(i), fontWeight = FontWeight.Bold, fontSize = 18.sp),+ color = menuInk, maxLines = 1, overflow = androidx.compose.ui.text.style.TextOverflow.Ellipsis, modifier = Modifier.weight(1f),+ )+ if (forLabel.font == i) Icon(LucideIcons.Check, null, tint = menuInk.copy(alpha = 0.8f), modifier = Modifier.size(19.dp))+ }+ }+ // one of the user's own (.ttf, .otf)+ Row(+ Modifier.fillMaxWidth().pressable({+ fontFor = forLabel+ fontMenu = null+ pickFont.launch(FontMimeTypes)+ }).padding(horizontal = 16.dp, vertical = 11.dp),+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Text(stringResource(R.string.photo_font_add), style = ClearType.BodyStrong, color = menuInk, modifier = Modifier.weight(1f))+ Icon(LucideIcons.Plus, null, tint = menuInk.copy(alpha = 0.65f), modifier = Modifier.size(19.dp))+ }+ Spacer(Modifier.height(6.dp))+ }+ }// plain, on a tag, outlinedBox(Modifier.size(42.dp).clip(CircleShape).pressable({diff --git a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoMarks.kt b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoMarks.ktindex d5096c6..b1e641d 100644--- a/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoMarks.kt+++ b/android/app/src/main/java/com/chethan616/clearpdf/ui/notes/PhotoMarks.kt@@ -167,7 +167,6 @@ internal class Label(var font: Int = 0,) : Mark()-internal const val LABEL_FONTS = 4internal const val LABEL_STYLES = 3/** The marks follow the picture as it turns a quarter clockwise. */@@ -289,12 +288,7 @@ private fun boxPass(src: IntArray, dst: IntArray, w: Int, h: Int, r: Int, across}}-internal fun labelFont(i: Int): Typeface = when (i) {- 1 -> Typeface.create(Typeface.SERIF, Typeface.BOLD)- 2 -> Typeface.create(Typeface.MONOSPACE, Typeface.BOLD)- 3 -> Typeface.create("cursive", Typeface.BOLD)- else -> Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)-}+internal fun labelFont(i: Int): Typeface = LabelFonts.typeface(i)private fun light(color: Int): Boolean {val r = android.graphics.Color.red(color)@@ -484,3 +478,108 @@ internal fun paintMarks(canvas: Canvas, place: Placement, marks: List<Mark>, fx:}for (l in marks) if (l is Label) drawLabel(canvas, place, l, l === chosen)}++/**+ * The fonts words on a picture can take (#174): the system's sans (the default, as before) and+ * monospace, the fonts Artefact carries (each one different on every phone; the system's serif and+ * cursive used to be, but many phones draw all of them in the same face, so choosing did nothing),+ * then the user's own .ttf / .otf files, kept in the app. Indexes are stable: the user's fonts only+ * ever come after the rest, in the order they were added.+ */+internal object LabelFonts {+ private class Builtin(val name: String, val res: Int?, val system: Typeface?, val variable: Boolean)++ private val builtins = listOf(+ Builtin("Sans", null, Typeface.SANS_SERIF, false),+ Builtin("DM Serif", com.chethan616.clearpdf.R.font.dm_serif, null, false),+ Builtin("Mono", null, Typeface.MONOSPACE, false),+ Builtin("Bricolage", com.chethan616.clearpdf.R.font.bricolage, null, true),+ Builtin("Outfit", com.chethan616.clearpdf.R.font.outfit, null, true),+ Builtin("Jakarta", com.chethan616.clearpdf.R.font.jakarta, null, true),+ Builtin("Fraunces", com.chethan616.clearpdf.R.font.fraunces, null, true),+ Builtin("Doto", com.chethan616.clearpdf.R.font.doto, null, true),+ )++ private var app: android.content.Context? = null++ /** The user's own fonts, in the order they were added (Compose state: the font list follows). */+ private val custom = androidx.compose.runtime.mutableStateListOf<java.io.File>()+ private val typefaces = HashMap<Int, Typeface>()+ private val families = HashMap<Int, androidx.compose.ui.text.font.FontFamily>()++ fun init(context: android.content.Context) {+ if (app != null) return+ app = context.applicationContext+ val dir = dir(context)+ // added order: the file names start with the time they were added+ custom.addAll(dir.listFiles { f -> f.isFile }.orEmpty().sortedBy { it.name })+ }++ private fun dir(context: android.content.Context) = java.io.File(context.filesDir, "label_fonts").apply { mkdirs() }++ val count: Int get() = builtins.size + custom.size++ fun name(i: Int): String =+ builtins.getOrNull(i)?.name ?: custom.getOrNull(i - builtins.size)?.name?.substringAfter('_')?.substringBeforeLast('.') ?: builtins[0].name++ /** The bold face for drawing on the picture (Paint). */+ fun typeface(i: Int): Typeface = typefaces.getOrPut(i) {+ val context = app+ val b = builtins.getOrNull(i)+ val base = when {+ b?.system != null -> b.system+ b?.res != null && context != null -> runCatching { androidx.core.content.res.ResourcesCompat.getFont(context, b.res) }.getOrNull()+ b == null -> custom.getOrNull(i - builtins.size)?.let { runCatching { Typeface.createFromFile(it) }.getOrNull() }+ else -> null+ } ?: Typeface.SANS_SERIF+ Typeface.create(base, Typeface.BOLD)+ }++ /** The same face for the editor's own text (Compose). */+ fun family(i: Int): androidx.compose.ui.text.font.FontFamily = families.getOrPut(i) {+ val b = builtins.getOrNull(i)+ val bold = androidx.compose.ui.text.font.FontWeight.Bold+ when {+ b?.system == Typeface.MONOSPACE -> androidx.compose.ui.text.font.FontFamily.Monospace+ b?.system != null -> androidx.compose.ui.text.font.FontFamily.SansSerif+ b?.res != null && b.variable -> androidx.compose.ui.text.font.FontFamily(+ androidx.compose.ui.text.font.Font(+ b.res, bold,+ variationSettings = androidx.compose.ui.text.font.FontVariation.Settings(androidx.compose.ui.text.font.FontVariation.weight(700)),+ ),+ )+ b?.res != null -> androidx.compose.ui.text.font.FontFamily(androidx.compose.ui.text.font.Font(b.res, bold))+ else -> custom.getOrNull(i - builtins.size)+ ?.let { androidx.compose.ui.text.font.FontFamily(androidx.compose.ui.text.font.Font(it, bold)) }+ ?: androidx.compose.ui.text.font.FontFamily.SansSerif+ }+ }++ /**+ * Copies a font the user picked into the app and adds it to the list: its index, or null when+ * the file is not a font Android can draw with (nothing is kept then).+ */+ suspend fun add(context: android.content.Context, uri: android.net.Uri): Int? = kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {+ init(context)+ val shown = runCatching {+ context.contentResolver.query(uri, arrayOf(android.provider.OpenableColumns.DISPLAY_NAME), null, null, null)?.use { c ->+ if (c.moveToFirst()) c.getString(0) else null+ }+ }.getOrNull() ?: "Font.ttf"+ val safe = shown.replace(Regex("[^A-Za-z0-9 ._-]"), "").trim().ifEmpty { "Font.ttf" }.take(60)+ val file = java.io.File(dir(context), "${System.currentTimeMillis()}_$safe")+ val copied = runCatching {+ context.contentResolver.openInputStream(uri)?.use { input -> file.outputStream().use { out -> input.copyTo(out, 1 shl 16) } } != null+ }.getOrDefault(false)+ // a font Android can draw with, and not too big to be one (64 MB)+ val usable = copied && file.length() in 1..(64L shl 20) && runCatching { Typeface.Builder(file).build() }.getOrNull() != null+ if (!usable) {+ file.delete()+ return@withContext null+ }+ kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.Main) {+ custom.add(file)+ count - 1+ }+ }+}diff --git a/android/app/src/main/res/values-ar/strings.xml b/android/app/src/main/res/values-ar/strings.xmlindex 32f9222..5b46152 100644--- a/android/app/src/main/res/values-ar/strings.xml+++ b/android/app/src/main/res/values-ar/strings.xml@@ -1122,6 +1122,9 @@<string name="photo_shape_original">الأصل</string><string name="photo_mirror">عكس</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">الخط</string>+ <string name="photo_font_add">إضافة خط…</string>+ <string name="photo_font_unusable">هذا الملف ليس خطًا يمكن لـ Artefact استخدامه</string><string name="photo_not_saved">تعذّر حفظ الصورة.</string><string name="msg_busy_removing_password">جارٍ إزالة كلمة المرور…</string><string name="msg_unlock_failed">لا يمكن إزالة حماية هذا الملف</string>@@ -1291,7 +1294,7 @@<string name="app_style_glass_detail">الافتراضي · أسطح شبه شفافة</string><string name="app_style_clean_detail">أسطح معتمة</string><string name="settings_reduce_transparency">تقليل الشفافية</string>- <string name="settings_reduce_transparency_detail">تبقى أشرطة الأدوات فوق الصفحات والقوائم معتمة، دون تمويه خلفها</string>+ <string name="settings_reduce_transparency_detail">تبقى الأشرطة العائمة معتمة، لا يظهر شيء من خلفها</string><string name="qr_scanner">ماسح رموز QR</string><string name="qr_scan_prompt">وجّه الكاميرا نحو رمز QR</string></resources>diff --git a/android/app/src/main/res/values-de/strings.xml b/android/app/src/main/res/values-de/strings.xmlindex c78c15b..2a1a0cc 100644--- a/android/app/src/main/res/values-de/strings.xml+++ b/android/app/src/main/res/values-de/strings.xml@@ -1472,6 +1472,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Spiegeln</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Schrift</string>+ <string name="photo_font_add">Schrift hinzufügen…</string>+ <string name="photo_font_unusable">Diese Datei ist keine Schrift, die Artefact verwenden kann</string><string name="photo_not_saved">Das Bild konnte nicht gespeichert werden.</string><string name="msg_busy_removing_password">Passwort wird entfernt…</string><string name="msg_unlock_failed">Der Schutz dieser Datei kann nicht entfernt werden</string>@@ -1633,7 +1636,7 @@<string name="app_style_glass_detail">Standard · Durchscheinende Flächen</string><string name="app_style_clean_detail">Deckende Flächen</string><string name="settings_reduce_transparency">Transparenz reduzieren</string>- <string name="settings_reduce_transparency_detail">Symbolleisten über Seiten und Listen bleiben deckend, ohne Unschärfe dahinter</string>+ <string name="settings_reduce_transparency_detail">Schwebende Leisten bleiben deckend, nichts scheint durch</string><string name="qr_scanner">QR-Scanner</string><string name="qr_scan_prompt">Richte die Kamera auf einen QR-Code</string></resources>diff --git a/android/app/src/main/res/values-es/strings.xml b/android/app/src/main/res/values-es/strings.xmlindex e7dcdab..f3cb077 100644--- a/android/app/src/main/res/values-es/strings.xml+++ b/android/app/src/main/res/values-es/strings.xml@@ -1480,6 +1480,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Espejo</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Fuente</string>+ <string name="photo_font_add">Añadir una fuente…</string>+ <string name="photo_font_unusable">Ese archivo no es una fuente que Artefact pueda usar</string><string name="photo_not_saved">No se pudo guardar la imagen.</string><string name="msg_busy_removing_password">Quitando la contraseña…</string><string name="msg_unlock_failed">No se puede quitar la protección de este archivo</string>@@ -1642,7 +1645,7 @@<string name="app_style_glass_detail">Predeterminado · Superficies translúcidas</string><string name="app_style_clean_detail">Superficies opacas</string><string name="settings_reduce_transparency">Reducir transparencia</string>- <string name="settings_reduce_transparency_detail">Las barras sobre páginas y listas se mantienen opacas, sin desenfoque detrás</string>+ <string name="settings_reduce_transparency_detail">Las barras flotantes quedan opacas, no se ve nada detrás</string><string name="qr_scanner">Escáner QR</string><string name="qr_scan_prompt">Apunta la cámara a un código QR</string></resources>diff --git a/android/app/src/main/res/values-fr/strings.xml b/android/app/src/main/res/values-fr/strings.xmlindex cf8c953..3214fc9 100644--- a/android/app/src/main/res/values-fr/strings.xml+++ b/android/app/src/main/res/values-fr/strings.xml@@ -1352,6 +1352,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Miroir</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Police</string>+ <string name="photo_font_add">Ajouter une police…</string>+ <string name="photo_font_unusable">Ce fichier n\'est pas une police qu\'Artefact peut utiliser</string><string name="photo_not_saved">L\'image n\'a pas pu être enregistrée.</string><string name="msg_busy_removing_password">Retrait du mot de passe…</string><string name="msg_unlock_failed">La protection de ce fichier ne peut pas être retirée</string>@@ -1514,7 +1517,7 @@<string name="app_style_glass_detail">Par défaut · Surfaces translucides</string><string name="app_style_clean_detail">Surfaces opaques</string><string name="settings_reduce_transparency">Réduire la transparence</string>- <string name="settings_reduce_transparency_detail">Les barres au-dessus des pages et des listes restent opaques, sans flou derrière</string>+ <string name="settings_reduce_transparency_detail">Les barres flottantes restent opaques, rien ne transparaît</string><string name="qr_scanner">Scanner QR</string><string name="qr_scan_prompt">Pointez la caméra vers un code QR</string></resources>diff --git a/android/app/src/main/res/values-it/strings.xml b/android/app/src/main/res/values-it/strings.xmlindex 99b4020..bb0d842 100644--- a/android/app/src/main/res/values-it/strings.xml+++ b/android/app/src/main/res/values-it/strings.xml@@ -1462,6 +1462,9 @@<string name="photo_shape_original">Originale</string><string name="photo_mirror">Specchia</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Carattere</string>+ <string name="photo_font_add">Aggiungi un carattere…</string>+ <string name="photo_font_unusable">Quel file non è un carattere che Artefact può usare</string><string name="photo_not_saved">Impossibile salvare l\'immagine.</string><string name="msg_busy_removing_password">Rimozione della password…</string><string name="msg_unlock_failed">La protezione di questo file non può essere rimossa</string>@@ -1624,7 +1627,7 @@<string name="app_style_glass_detail">Predefinito · Superfici traslucide</string><string name="app_style_clean_detail">Superfici opache</string><string name="settings_reduce_transparency">Riduci trasparenza</string>- <string name="settings_reduce_transparency_detail">Le barre sopra pagine ed elenchi restano opache, senza sfocatura dietro</string>+ <string name="settings_reduce_transparency_detail">Le barre mobili restano opache, non traspare nulla</string><string name="qr_scanner">Scanner QR</string><string name="qr_scan_prompt">Inquadra un codice QR</string></resources>diff --git a/android/app/src/main/res/values-pt-rBR/strings.xml b/android/app/src/main/res/values-pt-rBR/strings.xmlindex 48e79fd..f6b4676 100644--- a/android/app/src/main/res/values-pt-rBR/strings.xml+++ b/android/app/src/main/res/values-pt-rBR/strings.xml@@ -1057,6 +1057,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Espelhar</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Fonte</string>+ <string name="photo_font_add">Adicionar uma fonte…</string>+ <string name="photo_font_unusable">Esse arquivo não é uma fonte que o Artefact possa usar</string><string name="photo_not_saved">Não foi possível salvar a imagem.</string><string name="msg_busy_removing_password">Removendo a senha…</string><string name="msg_unlock_failed">Não é possível remover a proteção deste arquivo</string>@@ -1219,7 +1222,7 @@<string name="app_style_glass_detail">Padrão · Superfícies translúcidas</string><string name="app_style_clean_detail">Superfícies opacas</string><string name="settings_reduce_transparency">Reduzir transparência</string>- <string name="settings_reduce_transparency_detail">As barras sobre páginas e listas ficam opacas, sem desfoque por trás</string>+ <string name="settings_reduce_transparency_detail">As barras flutuantes ficam opacas, nada aparece por trás</string><string name="qr_scanner">Leitor de QR</string><string name="qr_scan_prompt">Aponte a câmera para um código QR</string></resources>diff --git a/android/app/src/main/res/values-pt/strings.xml b/android/app/src/main/res/values-pt/strings.xmlindex e451c1e..3594c9a 100644--- a/android/app/src/main/res/values-pt/strings.xml+++ b/android/app/src/main/res/values-pt/strings.xml@@ -1057,6 +1057,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Espelhar</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Tipo de letra</string>+ <string name="photo_font_add">Adicionar um tipo de letra…</string>+ <string name="photo_font_unusable">Esse ficheiro não é um tipo de letra que o Artefact possa usar</string><string name="photo_not_saved">Não foi possível guardar a imagem.</string><string name="msg_busy_removing_password">A remover a palavra-passe…</string><string name="msg_unlock_failed">Não é possível remover a proteção deste ficheiro</string>@@ -1219,7 +1222,7 @@<string name="app_style_glass_detail">Predefinido · Superfícies translúcidas</string><string name="app_style_clean_detail">Superfícies opacas</string><string name="settings_reduce_transparency">Reduzir transparência</string>- <string name="settings_reduce_transparency_detail">As barras sobre páginas e listas ficam opacas, sem desfocagem por trás</string>+ <string name="settings_reduce_transparency_detail">As barras flutuantes ficam opacas, nada transparece</string><string name="qr_scanner">Leitor de QR</string><string name="qr_scan_prompt">Aponte a câmara para um código QR</string></resources>diff --git a/android/app/src/main/res/values-ru/strings.xml b/android/app/src/main/res/values-ru/strings.xmlindex 42a237d..d8a2235 100644--- a/android/app/src/main/res/values-ru/strings.xml+++ b/android/app/src/main/res/values-ru/strings.xml@@ -1087,6 +1087,9 @@<string name="photo_shape_original">Оригинал</string><string name="photo_mirror">Отразить</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Шрифт</string>+ <string name="photo_font_add">Добавить шрифт…</string>+ <string name="photo_font_unusable">Этот файл не является шрифтом, который может использовать Artefact</string><string name="photo_not_saved">Не удалось сохранить изображение.</string><string name="msg_busy_removing_password">Снятие пароля…</string><string name="msg_unlock_failed">Защиту этого файла снять нельзя</string>@@ -1252,7 +1255,7 @@<string name="app_style_glass_detail">По умолчанию · Полупрозрачные панели</string><string name="app_style_clean_detail">Непрозрачные панели</string><string name="settings_reduce_transparency">Уменьшить прозрачность</string>- <string name="settings_reduce_transparency_detail">Панели над страницами и списками остаются непрозрачными, без размытия за ними</string>+ <string name="settings_reduce_transparency_detail">Плавающие панели непрозрачны, ничего не просвечивает</string><string name="qr_scanner">QR-сканер</string><string name="qr_scan_prompt">Наведите камеру на QR-код</string></resources>diff --git a/android/app/src/main/res/values-zh-rCN/strings.xml b/android/app/src/main/res/values-zh-rCN/strings.xmlindex 31c5a29..85100d4 100644--- a/android/app/src/main/res/values-zh-rCN/strings.xml+++ b/android/app/src/main/res/values-zh-rCN/strings.xml@@ -1114,6 +1114,9 @@<string name="photo_shape_original">原始比例</string><string name="photo_mirror">镜像</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">字体</string>+ <string name="photo_font_add">添加字体…</string>+ <string name="photo_font_unusable">该文件不是 Artefact 可用的字体</string><string name="photo_not_saved">无法保存图片。</string><!-- Draw tool: lines drawn are turned into neat shapes. --><string name="msg_snap_to_shape_on">已开启手绘转图形</string>@@ -1677,5 +1680,5 @@<string name="settings_your_name_hint">显示在“今日”页的问候语上方</string><string name="thoughts_audios">音频</string><string name="settings_reduce_transparency">降低透明度</string>- <string name="settings_reduce_transparency_detail">页面和列表上方的工具栏保持不透明,背后不做模糊</string>+ <string name="settings_reduce_transparency_detail">浮动栏保持不透明,不透出任何内容</string></resources>diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xmlindex a021846..a1cae51 100644--- a/android/app/src/main/res/values/strings.xml+++ b/android/app/src/main/res/values/strings.xml@@ -1125,6 +1125,9 @@<string name="photo_shape_original">Original</string><string name="photo_mirror">Mirror</string><string name="photo_font_sample">Aa</string>+ <string name="photo_font_choose">Font</string>+ <string name="photo_font_add">Add a font…</string>+ <string name="photo_font_unusable">That file isn\'t a font Artefact can use</string><string name="photo_not_saved">The picture couldn\'t be saved.</string><!-- Draw tool: lines drawn are turned into neat shapes. --><string name="msg_snap_to_shape_on">Snap to shape on</string>@@ -1693,7 +1696,7 @@<string name="app_style_glass_detail">Default · Translucent surfaces</string><string name="app_style_clean_detail">Solid surfaces</string><string name="settings_reduce_transparency">Reduce transparency</string>- <string name="settings_reduce_transparency_detail">Toolbars over pages and lists stay solid, with no blur behind them</string>+ <string name="settings_reduce_transparency_detail">Floating bars stay solid, nothing shows through</string><string name="qr_scanner">QR Scanner</string><string name="qr_scan_prompt">Point the camera at a QR code</string></resources>