-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edea4dc
commit 1184f52
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# FAQs | ||
|
||
**Q: Why does the font look off when using AnsiToImg, especially on Android or other platforms?** | ||
|
||
AnsiToImg cannot meaningfully control the font used when rendering text, as it relies on the OS | ||
and the Playwright library (which uses the Chromium browser to render SVGs). This means that font | ||
rendering issues, such as alignment problems or incorrect fonts, are often caused by the system's | ||
font fallback mechanisms. | ||
|
||
Android users may particularly notice this issue due to how Android handles font fallbacks. | ||
Unfortunately, this is not something AnsiToImg can directly control. The issue stems from upstream, | ||
meaning it would need to be resolved by the Android platform itself. | ||
|
||
For more in-depth information about font fallback issues, I recommend reading articles by **Tonsky**, | ||
the creator of Fira Code. They explain these kinds of problems much better than I could. You can | ||
check out one of their posts here: [Font Size Article by Tonsky](https://tonsky.me/blog/font-size/). | ||
|
||
Here's another example of a similar alignment issue in a different project: | ||
[Nushell Issue #83](https://github.com/nushell/nushell.github.io/issues/83). In that case, the | ||
developers also faced limitations due to upstream dependencies. |