fix: Restore first-line paragraph indentation (#2320)

This commit is contained in:
Uri Tauber
2026-06-12 11:55:00 -04:00
committed by GitHub
parent 21caebd6e4
commit 8634cb8ad3
4 changed files with 19 additions and 46 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ class ParsedText {
std::vector<bool> reorderedFocusSuffixScratch;
std::vector<uint16_t> visualOrderScratch;
void applyParagraphIndent();
int resolveFirstLineIndent(bool isFirstLine) const;
int resolveFirstLineIndent(bool isFirstLine, const GfxRenderer& renderer, int fontId) const;
std::vector<size_t> computeLineBreaks(const GfxRenderer& renderer, int fontId, int pageWidth,
std::vector<uint16_t>& wordWidths, std::vector<bool>& continuesVec);
std::vector<size_t> computeHyphenatedLineBreaks(const GfxRenderer& renderer, int fontId, int pageWidth,