https://github.com/opendomeco/nativescript-auto-fit-text
{N} Plugin to resize text to fit with
https://github.com/opendomeco/nativescript-auto-fit-text
angular autofittext nativescript nativescript-plugin
Last synced: 27 days ago
JSON representation
{N} Plugin to resize text to fit with
- Host: GitHub
- URL: https://github.com/opendomeco/nativescript-auto-fit-text
- Owner: opendomeco
- License: apache-2.0
- Created: 2017-07-06T16:29:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T22:21:12.000Z (over 7 years ago)
- Last Synced: 2025-03-18T09:04:19.065Z (about 1 month ago)
- Topics: angular, autofittext, nativescript, nativescript-plugin
- Language: HTML
- Homepage:
- Size: 3.51 MB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoFitText
This plugin is based on the Nativescript Label implementation but with changes to adjust the font size according of the label's width

## Prerequisites / Requirements
This plugin is only tested with **{N} > 3.0.0**
## Installation
Describe your plugin installation steps. Ideally it would be something like:
```javascript
tns plugin add nativescript-auto-fit-text
```## Usage
### Angular
```typescript
import { AutoFitTextModule } from "nativescript-auto-fit-text/angular"@NgModule({
...
imports: [
AutoFitTextModule
],
...
})
export class AppModule { }```
```html
```
### Vanilla Nativescript
```html
```
## Credits
[@grantland - android-autofittextview](https://github.com/grantland/android-autofittextview)
## LicenseApache License Version 2.0, January 2004