Skip to content

Android: font icon (font://...) in ActionItem or Image gets clipped #10857

@felixkrautschuk

Description

@felixkrautschuk

Issue Description

When displaying a font icon inside ActionItem or Image with font://..., then the icon gets clipped on Android on the top and right.

I tested FontAwesome Free webfont and Material Design Icon webfont.

XML:

<ActionItem icon="font://&#xf002;" class="actionitem fa-solid" .../>

<Image src="font://&#xf002;" class="icon fa-solid" .../>


CSS:

.mdi {
    font-family: 'Material Design Icons', materialdesignicons-webfont;
}

.fa-solid {
    font-family: Font Awesome 6 Free, fa-solid-900;
    font-weight: 900;
}

.actionitem,
.icon {
    font-size: 19;
}


Image:
Image

ActionItem:
Image

Reproduction

sample app for reproduction:

nsandroidfonticon.zip

Relevant log output (if applicable)

-

Environment

OS: macOS 26.0
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Shell: /bin/zsh
node: 22.19.0
npm: 11.6.0
nativescript: 8.9.3

# android
java: 17.0.11
ndk: Not Found
apis: 29, 30, 32, 33, 34, 35, 36
build_tools: 25.0.2, 27.0.3, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 32.0.0, 33.0.0, 33.0.1, 33.0.2, 34.0.0, 35.0.0, 35.0.1
system_images: 
  - android-29 | Google Play Intel x86_64 Atom
  - android-30 | Google Play Intel x86 Atom
  - android-32 | Google Play Intel x86_64 Atom
  - android-34 | Google Play Intel x86_64 Atom
  - android-35 | Intel x86_64 Atom
  - android-35 | Google Play Intel x86_64 Atom
  - android-35 | Google Play Tablet Intel x86_64 Atom
  - android-36 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom

# ios
xcode: 26.0/17A324
cocoapods: 1.16.2
python: 2.7.18
python3: 3.13.0
ruby: 2.6.10
platforms: 
  - DriverKit 25.0
  - iOS 26.0
  - macOS 26.0
  - tvOS 26.0
  - visionOS 26.0
  - watchOS 26.0

Dependencies

"dependencies": {
  "@nativescript/core": "^8.9.9"
},
"devDependencies": {
  "@nativescript/android": "^8.9.2",
  "@nativescript/webpack": "^5.0.24"
}

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions