Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font with offset when rendering #191

Open
1 of 3 tasks
davidmartos96 opened this issue Nov 25, 2023 · 5 comments
Open
1 of 3 tasks

Font with offset when rendering #191

davidmartos96 opened this issue Nov 25, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@davidmartos96
Copy link

Kind of issue

  • Improvement
  • Bug
  • Other, namely:

Description

Hello! I've noticed an issue with the TTF font.
When using the font in Flutter, there is a small offset when rendering the font. There is a small gap at the top and it goes a bit out of bounds at the bottom.
I'm not sure where the problem is exactly, but I did try to create a TTF font with icomoon.io manually with a few of the Simple Icons SVGs and it doesn't have that problem.
So there are some differences in how both TTF are generated. Any ideas?

I've tried with the TTF files in the Github, v7 and v9, both with the same problem.

Screenshot_2023-11-22-11-00-10-67_082aea295e0e2b19157fadadca43d2cc.jpg

@ineshbose
Copy link

I feel this may be related too: ineshbose/simple-icons-latex#2

@mondeja mondeja added the bug Something isn't working label Nov 30, 2023
@mondeja
Copy link
Member

mondeja commented Nov 30, 2023

Probably related to #170

Would you mind to provide the exact list of steps or (preferably) commands that I should execute to reproduce it? That would speed up the patching process.

@davidmartos96
Copy link
Author

@mondeja Here you go: https://github.com/davidmartos96/simpleicons_offset_bug

It has a README with instructions. It includes the TTF font v10 with the simplest integration as it can be. TTF loading and only one sample circular icon declared, but you can define more manually in the lib/icons.dart file.

Let me know if you have any issue reproducing it.

@LitoMore
Copy link
Member

@davidmartos96 Is this issue only on Simple Icon Font? Did you try some other icon fonts?

@davidmartos96
Copy link
Author

@LitoMore Yes, I've only experienced it with this TTF font. Other popular TTF icon fonts render correctly on Flutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants