Skip to content

(Fix): Add font support for barcode label rendering in Docker#232

Merged
rorychatt merged 1 commit into
mainfrom
fix-text-rendering-in-barcodelib
Oct 10, 2025
Merged

(Fix): Add font support for barcode label rendering in Docker#232
rorychatt merged 1 commit into
mainfrom
fix-text-rendering-in-barcodelib

Conversation

@ArtemLazarchuk

Copy link
Copy Markdown
Collaborator

Problem

Barcode labels (digits) are not displayed in the deployed Docker container when "Label: ON" is enabled.

Root Cause

The base Docker image mcr.microsoft.com/dotnet/aspnet:9.0 doesn't include system fonts, which SkiaSharp requires for text rendering.

Solution

Added installation of essential font packages in the Dockerfile:

  • fontconfig - font configuration system
  • libfontconfig1 - font configuration library
  • fonts-dejavu-core - basic TrueType fonts

@ArtemLazarchuk ArtemLazarchuk self-assigned this Oct 10, 2025
@rorychatt
rorychatt self-requested a review October 10, 2025 14:26
@rorychatt
rorychatt merged commit 449feda into main Oct 10, 2025
63 checks passed
@rorychatt
rorychatt deleted the fix-text-rendering-in-barcodelib branch October 15, 2025 06:41
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.

2 participants