Use monospace font for contact sheet metadata
Updated FFmpeg drawtext filter to use DejaVu Sans Mono for metadata text on contact sheets. This matches the monospace font style used throughout the VideoTools UI. DejaVu Sans Mono is widely available across Linux, macOS, and Windows, ensuring consistent appearance across platforms. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
701e2592ee
commit
37fa9d1a5c
|
|
@ -363,12 +363,12 @@ func (g *Generator) buildMetadataFilter(config Config, duration float64, thumbWi
|
||||||
// Create filter that:
|
// Create filter that:
|
||||||
// 1. Generates contact sheet from selected frames
|
// 1. Generates contact sheet from selected frames
|
||||||
// 2. Creates a blank header area
|
// 2. Creates a blank header area
|
||||||
// 3. Draws metadata text on header
|
// 3. Draws metadata text on header (using monospace font)
|
||||||
// 4. Stacks header on top of contact sheet
|
// 4. Stacks header on top of contact sheet
|
||||||
filter := fmt.Sprintf(
|
filter := fmt.Sprintf(
|
||||||
"%s,%s,pad=%d:%d:0:%d:black,"+
|
"%s,%s,pad=%d:%d:0:%d:black,"+
|
||||||
"drawtext=text='%s':fontcolor=white:fontsize=14:x=10:y=10,"+
|
"drawtext=text='%s':fontcolor=white:fontsize=14:font='DejaVu Sans Mono':x=10:y=10,"+
|
||||||
"drawtext=text='%s':fontcolor=white:fontsize=12:x=10:y=35",
|
"drawtext=text='%s':fontcolor=white:fontsize=12:font='DejaVu Sans Mono':x=10:y=35",
|
||||||
selectFilter,
|
selectFilter,
|
||||||
tileFilter,
|
tileFilter,
|
||||||
sheetWidth,
|
sheetWidth,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user