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
Spreadsheets (#71): pictures, Calibri metrics, white paper with a dark toggle
chethan616690b2cfc73ca
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex f3b3685..d4fbd5a 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -9,6 +9,13 @@ ClearPDF uses open-source components and keeps their notices with the project. R- Use: PDF parsing, editing, merging, splitting, and password removal.- Notice practice: keep the Apache 2.0 license and upstream attribution available with redistributed builds. Do not imply that the Apache Software Foundation endorses ClearPDF.+## Carlito font++- Files: `app/src/main/res/font/carlito_regular.ttf`, `carlito_bold.ttf`+- Copyright 2013 The Carlito Project Authors (https://github.com/googlefonts/carlito), with Reserved Font Name "Carlito"+- License: SIL Open Font License, Version 1.1 (https://openfontlicense.org)+- Used to draw spreadsheet cells styled in Calibri, whose metrics it matches.+## Apache POI- Artifacts: `org.apache.poi:poi:3.17`, `org.apache.poi:poi-scratchpad:3.17`diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.ktindex 41d487d..1a03dd4 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SettingsScreen.kt@@ -877,6 +877,7 @@ private val OpenSourceCredits = listOf(Credit("AndroidLiquidGlass", "Kyant", "Apache License 2.0", "https://github.com/Kyant0/AndroidLiquidGlass"),Credit("PdfBox-Android", "Tom Roush", "Apache License 2.0 — PDF text, forms and annotation export", "https://github.com/TomRoush/PdfBox-Android"),Credit("Apache POI", "The Apache Software Foundation", "Apache License 2.0 — legacy .doc / .xls / .ppt reading", "https://poi.apache.org"),+ Credit("Carlito", "The Carlito Project Authors", "SIL Open Font License 1.1 — Calibri-metric font for spreadsheets", "https://github.com/googlefonts/carlito"),Credit("ML Kit Text Recognition", "Google", "Apache License 2.0 — bundled on-device OCR, no network", "https://developers.google.com/ml-kit/vision/text-recognition"),Credit("Tesseract4Android", "Adaptech s.r.o.", "Apache License 2.0 — offline OCR fallback", "https://github.com/adaptech-cz/Tesseract4Android"),Credit("Tesseract OCR", "Google / Tesseract contributors", "Apache License 2.0", "https://github.com/tesseract-ocr/tesseract"),diff --git a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SpreadsheetViewerScreen.kt b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SpreadsheetViewerScreen.ktindex 50d00db..0624bac 100644--- a/app/src/main/java/com/chethan616/clearpdf/ui/screen/SpreadsheetViewerScreen.kt+++ b/app/src/main/java/com/chethan616/clearpdf/ui/screen/SpreadsheetViewerScreen.kt@@ -85,6 +85,8 @@ import androidx.compose.material.icons.rounded.IosShareimport androidx.compose.material.icons.rounded.PictureAsPdfimport androidx.compose.material.icons.rounded.SaveAsimport androidx.compose.material.icons.rounded.Search+import androidx.compose.material.icons.rounded.LightMode+import androidx.compose.material.icons.rounded.DarkModeimport androidx.compose.material.icons.rounded.TableRowsimport androidx.compose.material.icons.rounded.VerticalAlignBottomimport androidx.compose.material.icons.rounded.VerticalAlignCenter@@ -274,21 +276,32 @@ fun SpreadsheetViewerScreen(runCatching { listState.scrollToItem(0) }}- val surface = if (isDark) Color(0xFF1C1C1E) else Color.White- val gridColors = remember(isDark) {+ // The sheet is white paper like Excel's (#71), whatever the app theme; the moon button (or+ // Settings > Dark pages in dark mode) turns it dark, like a PDF's pages.+ val sheetContext = androidx.compose.ui.platform.LocalContext.current+ var sheetDark by androidx.compose.runtime.saveable.rememberSaveable {+ mutableStateOf(isDark && com.chethan616.clearpdf.data.repository.AppSettingsManager.getAutoDarkPages(sheetContext))+ }+ val surface = if (sheetDark) Color(0xFF1C1C1E) else Color.White+ val gridColors = remember(sheetDark) {GridColors(surface = surface,- headerBand = if (isDark) Color(0xFF26272B) else Color(0xFFF3F5F8),- headerText = if (isDark) Color(0xFFB5B6BF) else Color(0xFF5E6068),- headerDivider = if (isDark) Color(0xFF3A3B40) else Color(0xFFDADDE3),+ headerBand = if (sheetDark) Color(0xFF26272B) else Color(0xFFF3F5F8),+ headerText = if (sheetDark) Color(0xFFB5B6BF) else Color(0xFF5E6068),+ headerDivider = if (sheetDark) Color(0xFF3A3B40) else Color(0xFFDADDE3),accent = accent)}val version = state.versionval layout = remember(sheet, version) { sheet?.let { SheetLayout(it) } }- val painter = remember(wb, isDark) {+ val painter = remember(wb, sheetDark) {wb?.let {- XlsxPainter(it, PaintTheme(isDark, surface.toArgb(), text.toArgb(), if (isDark) 0xFF34353A.toInt() else 0xFFE2E4E9.toInt()))+ com.chethan616.clearpdf.utils.xlsx.XlsxFonts.init(sheetContext)+ XlsxPainter(it, PaintTheme(+ sheetDark, surface.toArgb(),+ (if (sheetDark) Color(0xFFE6E6EA) else Color(0xFF111111)).toArgb(),+ if (sheetDark) 0xFF34353A.toInt() else 0xFFE2E4E9.toInt()+ ))}}remember(version) { painter?.invalidate(); version }@@ -486,6 +499,13 @@ fun SpreadsheetViewerScreen(LiquidIconButton(onClick = { showSearch = true }, backdrop = headerBackdrop) {Icon(Icons.Rounded.Search, stringResource(R.string.viewer_find), Modifier.size(20.dp), text)}+ LiquidIconButton(onClick = { sheetDark = !sheetDark }, backdrop = headerBackdrop) {+ Icon(+ if (sheetDark) Icons.Rounded.LightMode else Icons.Rounded.DarkMode,+ stringResource(if (sheetDark) R.string.viewer_page_colors_original else R.string.viewer_page_dark_mode),+ Modifier.size(19.dp), text+ )+ }}if (state.editable) {LiquidIconButton(@@ -567,7 +587,7 @@ fun SpreadsheetViewerScreen(// other animation in this viewer stutter while the PDF viewer stayed smooth..clip(GlassPanelShape).background(surface)- .border(0.5.dp, if (isDark) Color.White.copy(0.10f) else Color.Black.copy(0.06f), GlassPanelShape)+ .border(0.5.dp, if (sheetDark) Color.White.copy(0.10f) else Color.Black.copy(0.06f), GlassPanelShape)) {SpreadsheetGrid(sheet = sheet,diff --git a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxFonts.kt b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxFonts.ktnew file mode 100644index 0000000..6b6a513--- /dev/null+++ b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxFonts.kt@@ -0,0 +1,32 @@+package com.chethan616.clearpdf.utils.xlsx++import android.content.Context+import android.graphics.Typeface+import androidx.core.content.res.ResourcesCompat+import com.chethan616.clearpdf.R++/**+ * Carlito, the free font with Calibri's exact metrics (SIL OFL). Workbooks are laid out in Calibri+ * (or Aptos), and Excel's column widths are measured in its characters; drawn in the wider system+ * sans, text overflowed its cells, wrapped onto extra lines and was cut off at merge edges (#71).+ */+object XlsxFonts {+ @Volatile private var regular: Typeface? = null+ @Volatile private var bold: Typeface? = null++ fun init(context: Context) {+ if (regular != null) return+ regular = runCatching { ResourcesCompat.getFont(context.applicationContext, R.font.carlito_regular) }.getOrNull()+ bold = runCatching { ResourcesCompat.getFont(context.applicationContext, R.font.carlito_bold) }.getOrNull()+ }++ private val calibriLike = setOf("calibri", "calibri light", "carlito", "aptos", "aptos narrow", "aptos display", "aptos light")++ /** Carlito in [style] for a Calibri-family font name (null when it isn't one, or not loaded). */+ fun forName(name: String?, style: Int): Typeface? {+ val n = name?.lowercase()?.trim() ?: return null+ if (n !in calibriLike) return null+ val base = (if (style and Typeface.BOLD != 0) bold else regular) ?: return null+ return if (style and Typeface.ITALIC != 0) Typeface.create(base, Typeface.ITALIC) else base+ }+}diff --git a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxModel.kt b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxModel.ktindex 47cfc61..31313ad 100644--- a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxModel.kt+++ b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxModel.kt@@ -65,6 +65,8 @@ class XlsxSheet(val cols = java.util.TreeMap<Int, ColumnInfo>()val merges = mutableListOf<CellRange>()val validations = mutableListOf<DataValidation>()+ /** Pictures placed on the sheet (logos, photos), from its drawing part. */+ val images = mutableListOf<SheetImage>()var defaultRowHeightPt = 15fvar defaultColWidthChars = 8.43fvar frozenRows = 0@@ -72,6 +74,8 @@ class XlsxSheet(var showGridLines = truevar tabColor: ColorSpec? = nullvar hidden = false+ /** The `<drawing r:id>` of this sheet, when it has pictures or charts. */+ var drawingRel: String? = null/** True when the reader stopped early (row cap). The grid shows what it has. */var truncated = false@@ -205,3 +209,16 @@ class XlsxWorkbook(return days.toString()}}++/**+ * A picture on a sheet, anchored the way the drawing part anchors it: from a cell plus an offset+ * (EMU) to another cell plus offset (`twoCellAnchor`), or from a cell with a fixed size+ * (`oneCellAnchor`), or at an absolute position (`absoluteAnchor`, [fromCol] = -1).+ */+class SheetImage(+ val fromCol: Int, val fromColOff: Long, val fromRow: Int, val fromRowOff: Long,+ val toCol: Int, val toColOff: Long, val toRow: Int, val toRowOff: Long,+ val extCx: Long, val extCy: Long,+ val absX: Long, val absY: Long,+ val bytes: ByteArray+)diff --git a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxPainter.kt b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxPainter.ktindex 9fa5ec1..15a16d8 100644--- a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxPainter.kt+++ b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxPainter.kt@@ -22,8 +22,10 @@ import com.chethan616.clearpdf.utils.ExcelCellFormat* or a scroll offset to a cell goes through here.*/class SheetLayout(val sheet: XlsxSheet, extraRows: Int = 40, extraCols: Int = 8) {- val nRows: Int = maxOf(sheet.maxRow + 1 + extraRows, 60, sheet.frozenRows + 1).coerceAtMost(XlsxReader.MaxRows + extraRows)- val nCols: Int = maxOf(sheet.maxCol + 1 + extraCols, 12, sheet.frozenCols + 1).coerceAtMost(XlsxReader.MaxColumns)+ val nRows: Int = maxOf(sheet.maxRow + 1 + extraRows, 60, sheet.frozenRows + 1, (sheet.images.maxOfOrNull { maxOf(it.fromRow, it.toRow) } ?: 0) + 2)+ .coerceAtMost(XlsxReader.MaxRows + extraRows)+ val nCols: Int = maxOf(sheet.maxCol + 1 + extraCols, 12, sheet.frozenCols + 1, (sheet.images.maxOfOrNull { maxOf(it.fromCol, it.toCol) } ?: 0) + 2)+ .coerceAtMost(XlsxReader.MaxColumns)val colX = FloatArray(nCols + 1)val rowY = FloatArray(nRows + 1)/** Rows the scrolling list shows (not frozen, not hidden), in order. */@@ -60,6 +62,31 @@ class SheetLayout(val sheet: XlsxSheet, extraRows: Int = 40, extraCols: Int = 8)}}+ /**+ * Each picture's box in Excel px (index-aligned with `sheet.images`), and the pictures crossing+ * each row: like merges, a row paints the slice of every picture that crosses it.+ */+ val imageRects: List<android.graphics.RectF> = sheet.images.map { img ->+ fun x(c: Int, off: Long) = colX[c.coerceIn(0, nCols)] + off / EmuPerPx+ fun y(r: Int, off: Long) = rowY[r.coerceIn(0, nRows)] + off / EmuPerPx+ val left = if (img.fromCol < 0) img.absX / EmuPerPx else x(img.fromCol, img.fromColOff)+ val top = if (img.fromCol < 0) img.absY / EmuPerPx else y(img.fromRow, img.fromRowOff)+ val right = if (img.toCol >= 0) x(img.toCol, img.toColOff) else left + img.extCx / EmuPerPx+ val bottom = if (img.toRow >= 0) y(img.toRow, img.toRowOff) else top + img.extCy / EmuPerPx+ android.graphics.RectF(left, top, maxOf(right, left + 1f), maxOf(bottom, top + 1f))+ }+ private val rowImages: Array<IntArray?> = arrayOfNulls<IntArray>(nRows).also { arr ->+ val lists = HashMap<Int, ArrayList<Int>>()+ imageRects.forEachIndexed { i, rect ->+ var r = rowAt(rect.top)+ while (r < nRows && rowY[r] < rect.bottom) { lists.getOrPut(r) { ArrayList(2) }.add(i); r++ }+ }+ for ((r, l) in lists) arr[r] = l.toIntArray()+ }++ /** Indices of the pictures crossing row [r]. */+ fun imagesAt(r: Int): IntArray? = rowImages.getOrNull(r)+fun colW(c: Int) = colX[c + 1] - colX[c]fun rowH(r: Int) = rowY[r + 1] - rowY[r]val totalWidth get() = colX[nCols]@@ -101,6 +128,9 @@ class SheetLayout(val sheet: XlsxSheet, extraRows: Int = 40, extraCols: Int = 8)}companion object {+ /** English Metric Units per pixel at 96 dpi. */+ const val EmuPerPx = 9525f+/** Excel's character-width → pixel rule for the default 11pt Calibri (max digit width 7). */fun colWidthPx(chars: Float): Float = if (chars <= 0f) 0f else (chars * 7f + 5f).coerceAtLeast(4f)fun charsFromPx(px: Float): Float = ((px - 5f) / 7f).coerceAtLeast(0.5f)@@ -222,7 +252,8 @@ class XlsxPainter(private val wb: XlsxWorkbook, val theme: PaintTheme) {val requestedName = st.fontName?.takeIf { fam == 0 }val key = "${requestedName ?: fam}|$style"val resolved = typefaces.getOrPut(key) {- if (requestedName != null) Typeface.create(requestedName, style)+ XlsxFonts.forName(requestedName, style)+ ?: if (requestedName != null) Typeface.create(requestedName, style)else Typeface.create(when (fam) { 1 -> Typeface.SERIF; 2 -> Typeface.MONOSPACE; else -> Typeface.SANS_SERIF }, style)@@ -445,9 +476,49 @@ class XlsxPainter(private val wb: XlsxWorkbook, val theme: PaintTheme) {drawText(canvas, cell, ci, x0, x1, x0, x1, y0, y1, scale)}}+ // Pass 5: pictures over the cells; this row paints the slice of each one that crosses it.+ layout.imagesAt(r)?.let { idx ->+ for (i in idx) {+ val rect = layout.imageRects[i]+ val img = sheet.images[i]+ // Each picture belongs to the region (frozen or scrolling) holding its anchor column.+ val anchorCol = if (img.fromCol < 0) layout.colAt(rect.left) else img.fromCol+ if (anchorCol !in firstCol..lastCol) continue+ val bmp = picture(i, img, (rect.width() * scale).toInt(), (rect.height() * scale).toInt()) ?: continue+ val dst = android.graphics.RectF(+ originX + rect.left * scale, (rect.top - layout.rowY[r]) * scale,+ originX + rect.right * scale, (rect.bottom - layout.rowY[r]) * scale+ )+ canvas.save()+ canvas.clipRect(clipL, 0f, clipR, h)+ canvas.drawBitmap(bmp, null, dst, picturePaint)+ canvas.restore()+ }+ }canvas.restore()}+ private val picturePaint = Paint(Paint.FILTER_BITMAP_FLAG or Paint.ANTI_ALIAS_FLAG)+ private val pictures = HashMap<Int, android.graphics.Bitmap?>()++ /** A sheet picture decoded once, at about the size it's drawn at (re-decoded when zoomed past it). */+ private fun picture(i: Int, img: SheetImage, wantW: Int, wantH: Int): android.graphics.Bitmap? {+ val cached = pictures[i]+ if (cached != null && !cached.isRecycled && cached.width >= wantW.coerceAtMost(2048) / 2) return cached+ if (pictures.containsKey(i) && cached == null) return null+ val bmp = runCatching {+ val bounds = android.graphics.BitmapFactory.Options().apply { inJustDecodeBounds = true }+ android.graphics.BitmapFactory.decodeByteArray(img.bytes, 0, img.bytes.size, bounds)+ var sample = 1+ val target = maxOf(wantW, wantH, 64).coerceAtMost(2048)+ while (maxOf(bounds.outWidth, bounds.outHeight) / (sample * 2) >= target) sample *= 2+ android.graphics.BitmapFactory.decodeByteArray(img.bytes, 0, img.bytes.size,+ android.graphics.BitmapFactory.Options().apply { inSampleSize = sample })+ }.getOrNull()+ pictures[i] = bmp+ return bmp+ }+private fun drawBorders(canvas: Canvas, st: ResolvedStyle, x: Float, y: Float, w: Float, h: Float, scale: Float) {if (st.left == null && st.right == null && st.top == null && st.bottom == null) returndrawEdge(canvas, st.left, x, y, x, y + h, scale)diff --git a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxReader.kt b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxReader.ktindex 77e21b6..5096b42 100644--- a/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxReader.kt+++ b/app/src/main/java/com/chethan616/clearpdf/utils/xlsx/XlsxReader.kt@@ -55,6 +55,7 @@ object XlsxReader {XlsxSheet(name, path).also { s ->s.hidden = hiddenrunCatching { parseWorksheet(entries[path]!!, s) }+ runCatching { loadImages(s, entries) }}}return XlsxWorkbook(sheets, styles, shared, editable = entries.containsKey("xl/workbook.xml"))@@ -63,7 +64,10 @@ object XlsxReader {private fun isNeeded(n: String): Boolean =n == "xl/workbook.xml" || n == "xl/_rels/workbook.xml.rels" || n == "xl/sharedStrings.xml" ||n == "xl/styles.xml" || (n.startsWith("xl/theme/") && n.endsWith(".xml")) ||- (n.startsWith("xl/worksheets/") && n.endsWith(".xml") && !n.contains("_rels"))+ (n.startsWith("xl/worksheets/") && n.endsWith(".xml") && !n.contains("_rels")) ||+ // Pictures: each sheet's relationships, its drawing part, and the images themselves.+ (n.startsWith("xl/worksheets/_rels/") && n.endsWith(".rels")) ||+ n.startsWith("xl/drawings/") || n.startsWith("xl/media/")private fun parser(bytes: ByteArray): XmlPullParser = parserFactory().apply {setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false)@@ -245,6 +249,70 @@ object XlsxReader {return out}+ // ── pictures ───────────────────────────────────────────────────────────────++ private fun resolvePart(fromPart: String, target: String): String {+ if (target.startsWith("/")) return target.drop(1)+ val stack = ArrayDeque(fromPart.substringBeforeLast('/', "").split('/').filter { it.isNotEmpty() })+ for (seg in target.split('/')) when (seg) {+ "", "." -> Unit+ ".." -> stack.removeLastOrNull()+ else -> stack.addLast(seg)+ }+ return stack.joinToString("/")+ }++ private fun relsOf(part: String, entries: Map<String, ByteArray>): Map<String, String> {+ val relPath = part.substringBeforeLast('/') + "/_rels/" + part.substringAfterLast('/') + ".rels"+ return entries[relPath]?.let { parseRels(it) } ?: emptyMap()+ }++ /** The pictures in [sheet]'s drawing part (charts and shapes are skipped). */+ private fun loadImages(sheet: XlsxSheet, entries: Map<String, ByteArray>) {+ val rel = sheet.drawingRel ?: return+ val drawingPath = relsOf(sheet.partPath, entries)[rel]?.let { resolvePart(sheet.partPath, it) } ?: return+ val drawing = entries[drawingPath] ?: return+ val drawingRels = relsOf(drawingPath, entries)+ val root = readEl(parser(drawing).also { while (it.eventType != XmlPullParser.START_TAG) it.next() })+ var budget = 40L * 1024 * 1024 // never keep more than ~40 MB of pictures per sheet+ for (anchor in root.children) {+ if (anchor.name !in setOf("twoCellAnchor", "oneCellAnchor", "absoluteAnchor")) continue+ val pic = anchor.children.firstOrNull { it.name == "pic" } ?: continue+ val blip = findEl(pic, "blip") ?: continue+ val embed = blip.attrs.entries.firstOrNull { it.key.substringAfter(':') == "embed" }?.value ?: continue+ val media = drawingRels[embed]?.let { resolvePart(drawingPath, it) } ?: continue+ val bytes = entries[media] ?: continue+ if (bytes.size > budget) continue+ budget -= bytes.size+ fun num(el: XmlEl?, n: String) = el?.children?.firstOrNull { it.name == n }?.text?.trim()?.toLongOrNull() ?: 0L+ val from = anchor.children.firstOrNull { it.name == "from" }+ val to = anchor.children.firstOrNull { it.name == "to" }+ val ext = anchor.children.firstOrNull { it.name == "ext" } ?: findEl(pic, "ext")+ val pos = anchor.children.firstOrNull { it.name == "pos" }+ sheet.images += SheetImage(+ fromCol = if (anchor.name == "absoluteAnchor") -1 else num(from, "col").toInt(),+ fromColOff = num(from, "colOff"),+ fromRow = num(from, "row").toInt(),+ fromRowOff = num(from, "rowOff"),+ toCol = if (to != null) num(to, "col").toInt() else -1,+ toColOff = num(to, "colOff"),+ toRow = if (to != null) num(to, "row").toInt() else -1,+ toRowOff = num(to, "rowOff"),+ extCx = ext?.attrs?.get("cx")?.toLongOrNull() ?: 0L,+ extCy = ext?.attrs?.get("cy")?.toLongOrNull() ?: 0L,+ absX = pos?.attrs?.get("x")?.toLongOrNull() ?: 0L,+ absY = pos?.attrs?.get("y")?.toLongOrNull() ?: 0L,+ bytes = bytes+ )+ }+ }++ private fun findEl(el: XmlEl, name: String): XmlEl? {+ if (el.name == name) return el+ for (c in el.children) findEl(c, name)?.let { return it }+ return null+ }+// ── worksheet ──────────────────────────────────────────────────────────────fun parseWorksheet(bytes: ByteArray, sheet: XlsxSheet) {@@ -301,6 +369,7 @@ object XlsxReader {}}"mergeCell" -> p.attr("ref")?.let { XlsxRefs.parseRange(it) }?.let { sheet.merges.add(it) }+ "drawing" -> sheet.drawingRel = p.attr("id")"dataValidation" -> readValidation(p)?.let { sheet.validations.add(it) }}}diff --git a/app/src/main/res/font/carlito_bold.ttf b/app/src/main/res/font/carlito_bold.ttfnew file mode 100644index 0000000..67543b5Binary files /dev/null and b/app/src/main/res/font/carlito_bold.ttf differdiff --git a/app/src/main/res/font/carlito_regular.ttf b/app/src/main/res/font/carlito_regular.ttfnew file mode 100644index 0000000..427b959Binary files /dev/null and b/app/src/main/res/font/carlito_regular.ttf differ