Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

txtの文字サイズの計測アルゴリズムの修正 #15

@PigeonsHouse

Description

@PigeonsHouse

現状、幅は、文字サイズx一番長い行の文字数、高さは、文字サイズx行数とシンプルな計算式になっているが、半角文字などでズレが大きく確認されてしまう。
Pillowのフォント描画処理を借りて、文章、フォント、文字サイズを受け取り描画区画を計算するようにする。
また、文字縁取り分の幅の調整も行う(幅は縁の幅x2、高さは縁の幅x2x行数で良い?)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions