From 8a25e74b552b10c53cafecac344384eb5b81e17c Mon Sep 17 00:00:00 2001 From: Kyle Leary Date: Tue, 18 Aug 2026 16:08:14 -0600 Subject: [PATCH 1/2] Add font image upload tab in character editor --- app/components/EditorSection.vue | 9 ++ app/components/ImageToFont.vue | 265 +++++++++++++++++++++++++++++++ 2 files changed, 274 insertions(+) create mode 100644 app/components/ImageToFont.vue diff --git a/app/components/EditorSection.vue b/app/components/EditorSection.vue index 1110175..89771ca 100644 --- a/app/components/EditorSection.vue +++ b/app/components/EditorSection.vue @@ -5,6 +5,7 @@ import { usePaletteStore } from "~~/stores/paletteStore" import { useHistoryStore } from "~~/stores/historyStore" import type { TabsItem } from "@nuxt/ui" +import ImageToLogo from "./ImageToLogo.vue" const fontStore = useFontStore() const optionsStore = useOptionsStore() @@ -31,6 +32,11 @@ const tabs = [ icon: "i-lucide-brush", slot: "character-editor" as const }, + { + label: "Font Image Upload", + icon: "i-lucide-file-image", + slot: "font-image-editor" as const + }, { label: "Logo Upload", icon: "i-lucide-file-image", @@ -181,6 +187,9 @@ const tabs = [ + diff --git a/app/components/ImageToFont.vue b/app/components/ImageToFont.vue new file mode 100644 index 0000000..5e6a9d1 --- /dev/null +++ b/app/components/ImageToFont.vue @@ -0,0 +1,265 @@ + + + From 5a5c51404fc1f1b6a657e7881a8a9eb3ecd98a65 Mon Sep 17 00:00:00 2001 From: Kyle Leary Date: Tue, 18 Aug 2026 16:13:45 -0600 Subject: [PATCH 2/2] Update text to include character size --- app/components/ImageToFont.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ImageToFont.vue b/app/components/ImageToFont.vue index 5e6a9d1..aa1b920 100644 --- a/app/components/ImageToFont.vue +++ b/app/components/ImageToFont.vue @@ -252,7 +252,7 @@ async function addToFont() { Upload an image to be used as the font portion of the OSD. You can use your favorite image editor to create the font instead of painting pixel by pixel.

- To avoid scaling artifacts the font image should be 192x180 pixels. + To avoid scaling artifacts the font image should be 192x180 pixels. Each character is 12x18 pixels in size.

This operation WILL replace the entirety of the font section, including custom graphics. It will not replace the logo portion of the OSD font.