feat(hymns): enlarge end of verse and end of song slide footer text size

Synced from GitHub: hymns-for-worship/issues#243 opened by @DSCOBURN on 2026-11-17T21:37:40Z


Could you enlarge end of verse/song one or two sizes?

Automated Issue Triage

Metadata Updates:

  • Assigned label: enhancement (58)
  • Formatted title: feat(hymns): enlarge end of verse and end of song slide footer text size

Codebase Analysis & Implementation Touchpoints:
The "End of Verse <N>" and "End of Song" indicators are generated by FooterService and rendered as bottom-right slide footers (or bottom-center on Android Cast/Stage) across slide previews, external displays, web slides, and PPTX/image exports:

  1. Footer Generation (footers.dart):
    • FooterService produces 'End of Song' and 'End of $part' strings for the final slide of each section.
  2. Slide Image & PPTX Exports / Web Slide Rendering (hfw_core & hfw_jaspr):
  3. iOS / macOS Native Slide & External Display Rendering (HfwPresenterAndPitchViews.swift):
  4. Android Native Compose & Cast/Stage Rendering (HfwHymnDetailComposeViews.kt & HfwCastAndStageManager.kt):
    • HfwHymnDetailComposeViews.kt scales fontSizeSp via (slideWidthDp * (32f / 1920f)).coerceAtLeast(7.5f) for grid thumbnails (line 3112) and .coerceAtLeast(11f) for main/presenter slides (line 3154).
    • HfwCastAndStageManager.kt (drawSlideFooterOverlay) uses fontSize = maxOf(18f, dstRect.height() * 0.022f) (line 722).

Implementation Plan & Target Sizing Matrix

To enlarge "End of Verse <N>" and "End of Song" by ~1–2 visual sizes (~+30–35%) consistently across all 4 slide renderers while keeping safe bottom-right margins on both 16:9 (1920×1080) and 4:3 (1440×1080) slides:

Renderer / File Current Sizing & Padding Recommended Target 16:9 / 4:3 Margin Safety Notes
Image & PPTX Export (IO & Web)
packages/hfw_core/lib/src/services/images/export_service.dart:48-49
export_service_io.dart:55-84
export_service_web.dart:118-135
footerSize = 40.0
footerPadding = 4
margin = footerSize + footerPadding (44px)
footerSize = 54.0 (single shared constant ImageExportService.footerSize)
footerPadding = 6
margin = 48.0 (decouple margin from footerSize so text doesn’t creep too far upward into lyrics)
At 54px bold on 1080p height (1440px width on 4:3), "End of Verse 10" is ~370px wide with 48px right/bottom inset—well clear of lyric lines and slide edges.
iOS / macOS Native Stage & External Display
packages/hfw_flutter/ios/Runner/HfwPresenterAndPitchViews.swift:602-604
max(isGridThumb ? 7.5 : 11.0, round(slideWidth * (32.0 / 1920.0)))
rightPad: 56/1920, bottomPad: 32/1920
max(isGridThumb ? 9.0 : 14.0, round(slideWidth * (44.0 / 1920.0)))
rightPad: max(isGridThumb ? 6.0 : 12.0, round(slideWidth * (56.0 / 1920.0)))
bottomPad: max(isGridThumb ? 4.0 : 8.0, round(slideWidth * (28.0 / 1920.0)))
~44pt at 1920px width (+37.5%), ~33pt at 1440px 4:3 width; bottomPad slightly tightened (28/1920) so larger text stays anchored in the lower-right safe band.
Android Compose Slides & Presenter
packages/hfw_flutter/android/app/src/main/kotlin/com/appleeducate/hfw/HfwHymnDetailComposeViews.kt:3112-3114, 3154-3156
(slideWidthDp * (32f / 1920f)).coerceAtLeast(7.5f / 11f)
rightPad: 56f/1920f, bottomPad: 32f/1920f
Mirror iOS exactly:
(slideWidthDp * (44f / 1920f)).coerceAtLeast(9f / 14f)
rightPad: 56f/1920f, bottomPad: 28f/1920f
Keeps pixel-level parity with iOS across phone, tablet, and grid thumbnails.
Android Cast / Stage Bitmap Overlay
packages/hfw_flutter/android/app/src/main/kotlin/com/appleeducate/hfw/HfwCastAndStageManager.kt:722-736
maxOf(18f, dstRect.height() * 0.022f) (~24px on 1080p)
bottom offset maxOf(12f, dstRect.height() * 0.018f)
maxOf(24f, dstRect.height() * 0.030f) (~32.4px on 1080p)
bottom offset maxOf(12f, dstRect.height() * 0.018f)
Centered bottom overlay with drop shadow; ~35% larger while staying within the lower 5% safe zone on both 16:9 and 4:3.

Verification:

  • Deduplicate footerSize in export_service_io.dart and export_service_web.dart to reference ImageExportService.footerSize.
  • Visually verify "End of Verse 10" and "End of Song" on dense 4:3 and 16:9 slides (export PNG/PPTX, web slide preview, iOS presenter/grid, Android presenter/Cast) to confirm zero clipping or lyric overlap.

Implemented in commit 92469bd on main: deduplicated ExportImagesService.footerSize = 54.0 and footerMargin = 48.0 across hfw_core IO/Web exports, and bumped iOS HfwSlideStageImageView & Android Compose HfwSlideStageBox (44/1920, min 9/14, bottomPad 28/1920) and Android Cast drawSlideFooterOverlay (maxOf(24f, height * 0.030f)). Verified with dart analyze and dart test (77/77 passed). Closing #279.

@rodydavis commented on GitHub at 2026-11-21T19:59:10Z:

Thanks for the feedback! We’ve enlarged the “End of Verse” and “End of Song” footer text size across slide image exports, iOS, and Android (including Cast/Stage displays) so it’s much easier to read from the congregation. This will be included in the next app release.