Skip to content

FontImageSource icons are not scaled properly #112

Open
@paya-cz

Description

@paya-cz

Description

I use ionicons.ttf font to add font icons to cells via FontImageSource. The icon is rendered, but the aspect ratio is not preserved.

Steps to Reproduce

  1. Add an icon font to the project.
  2. Create a new instance of FontImageSource
  3. Use the FontImageSource as IconSource of a cell.

Expected Behavior

The icon maintains aspect ratio, just like it does with SVG icons.

Actual Behavior

The icon is stretched in all directions without maintaining aspect ratio.

Platforms

  • Android
  • iOS

Android not tested.

Basic Information

  • AiForms.SettingsView 1.2.12-pre
  • Xamarin.Forms 4.6.0.847
  • Affected Devices: iOS

Screenshots

Simulator Screen Shot - iPhone 11 - 2020-06-09 at 16 49 04

Reproduction Link

FontImageSourceBug.zip

Workaround

None known.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions