webfonts-generator icon indicating copy to clipboard operation
webfonts-generator copied to clipboard

Icon resizing/centering within a boundary

Open webdevan opened this issue 7 years ago • 2 comments

I guess this is a feature request.

My icons are different sizes. Some icons are square-shaped, some are tall, and some are wide. The font generator appears to standardize the icons based on height to all be of equal height but variable in width. It would be nice to have the ability to define a boundary (width:height ratio - eg a 1:1 square) and for all icons to be centered within the boundaries so that no icon is wider than all the others. A really wide icon would just appear smaller and vertically centered within the boundary.

Is this be feasible?

image

webdevan avatar Jan 03 '18 14:01 webdevan

wouldn't you be able to do that with a flex div?

mark-spurgeon avatar Jan 22 '19 17:01 mark-spurgeon

Perhaps but ideally an icon font makes it dead easy to use icons interchangeably. My work around was to just add font-size: 80% or similar to specific icon clases.

webdevan avatar Jan 23 '19 15:01 webdevan