Skip to content

Commit

Permalink
fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros committed May 2, 2024
1 parent dd3e9db commit 995de03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-src/translators/text/translateParagraphIndent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const translateParagraphIndent = (
};

const calculateSpaceWidth = (fontSize: number, letterSpacing: number): number => {
// approximate character width to 0.5 of font size
const averageLetterWidth = fontSize * 0.5;
// approximate character width to 0.3 of font size
const averageLetterWidth = fontSize * 0.3;

return averageLetterWidth + letterSpacing;
};
Expand Down

0 comments on commit 995de03

Please sign in to comment.