Skip to content

Pr/tailwind#30

Open
moshloop wants to merge 7 commits intomainfrom
pr/tailwind
Open

Pr/tailwind#30
moshloop wants to merge 7 commits intomainfrom
pr/tailwind

Conversation

@moshloop
Copy link
Copy Markdown
Member

No description provided.

Remove drawingHelper parameter from TableComponent.drawCellText calls
to match the actual method signature (3 parameters instead of 4).
This fixes the TestTwoColumnSVGTableLayout test compilation errors.
- Add Point, MM, FontSize, and Rem types with conversion methods
- Fix critical unit mismatch in getRowHeight() where font size points were treated as MM
- Update style converter to use proper unit conversions instead of magic numbers
- Replace hardcoded conversion factors (6, 4, 12) with accurate constants
- Add comprehensive unit conversion constants: PointsToMM, MMToPoints, RemToPoints, RemToMM
- Update FPDF interface documentation to clarify unit expectations
- All tests pass with precise conversion accuracy

This resolves font metrics (points) vs layout dimensions (MM) mixing that
caused incorrect row height calculations in table rendering.
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.

1 participant