Skip to content

Apply subtitle font to OCR character text boxes#11391

Merged
niksedk merged 1 commit into
SubtitleEdit:mainfrom
mjuhasz:tweak/ocr-character-box-font-handling
Jun 4, 2026
Merged

Apply subtitle font to OCR character text boxes#11391
niksedk merged 1 commit into
SubtitleEdit:mainfrom
mjuhasz:tweak/ocr-character-box-font-handling

Conversation

@mjuhasz
Copy link
Copy Markdown
Contributor

@mjuhasz mjuhasz commented Jun 4, 2026

The subtitle font setting (Appearance → Subtitle font) was already applied to the main OCR window and a few secondary windows, but seven OCR dialogs were missed in #11368. This extends the same pattern to the remaining ones:

  • BinaryOcrCharacterAddWindow
  • BinaryOcrCharacterHistoryWindow
  • BinaryOcrDbEditWindow
  • NOcrCharacterAddWindow
  • NOcrCharacterHistoryWindow
  • NOcrDbEditWindow
  • NOcrInspectWindow

Each gets the same guard applied immediately after MakeTextBox, consistent with the existing pattern in BinaryOcrInspectWindow and PromptUnknownWordWindow.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request extends the existing “Appearance → Subtitle font” behavior to additional OCR-related dialogs that were missed previously, ensuring consistent glyph legibility when reviewing/adding OCR character mappings.

Changes:

  • Apply Se.Settings.Appearance.SubtitleTextBoxAndGridFontName to the OCR character text box (FontFamily) in seven OCR dialog windows.
  • Use the same guard/pattern as existing OCR secondary windows (set immediately after UiUtil.MakeTextBox(...)).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/ui/Features/Ocr/NOcr/NOcrInspectWindow.cs Apply subtitle font to the inspect window “new text” textbox.
src/ui/Features/Ocr/NOcr/NOcrDbEditWindow.cs Apply subtitle font to the DB edit “item text” textbox.
src/ui/Features/Ocr/NOcr/NOcrCharacterHistoryWindow.cs Apply subtitle font to the history window “new text” textbox.
src/ui/Features/Ocr/NOcr/NOcrCharacterAddWindow.cs Apply subtitle font to the add window “new text” textbox.
src/ui/Features/Ocr/BinaryOcr/BinaryOcrDbEditWindow.cs Apply subtitle font to the Binary OCR DB edit “item text” textbox (and add required Avalonia.Media using).
src/ui/Features/Ocr/BinaryOcr/BinaryOcrCharacterHistoryWindow.cs Apply subtitle font to the Binary OCR history window “new text” textbox.
src/ui/Features/Ocr/BinaryOcr/BinaryOcrCharacterAddWindow.cs Apply subtitle font to the Binary OCR add window “new text” textbox.

@niksedk niksedk merged commit 48efe94 into SubtitleEdit:main Jun 4, 2026
2 checks passed
@mjuhasz mjuhasz deleted the tweak/ocr-character-box-font-handling branch June 4, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants