simple-icons-font icon indicating copy to clipboard operation
simple-icons-font copied to clipboard

Font with offset when rendering

Open davidmartos96 opened this issue 1 year ago • 5 comments

Kind of issue

  • [ ] Improvement
  • [x] 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

davidmartos96 avatar Nov 25 '23 06:11 davidmartos96

I feel this may be related too: https://github.com/ineshbose/simple-icons-latex/issues/2

ineshbose avatar Nov 30 '23 18:11 ineshbose

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.

mondeja avatar Nov 30 '23 21:11 mondeja

@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.

davidmartos96 avatar Dec 01 '23 20:12 davidmartos96

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

LitoMore avatar Sep 12 '24 07:09 LitoMore

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

davidmartos96 avatar Sep 12 '24 07:09 davidmartos96