import { renderText } from 'modern-text'
const view = document.createElement('canvas')
document.body.append(view)
renderText({
view,
style: {
width: 100,
height: 200,
fontSize: 22,
textDecoration: 'underline',
},
content: [
{
letterSpacing: 3,
fragments: [
{ content: 'He', color: 'red', fontSize: 12 },
{ content: 'llo', color: 'black' },
],
},
{ content: ', ', color: 'grey' },
{ content: 'World!', color: 'black' },
],
})
generated from qq15725/starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
đ A text renderer. supports measureăspecial effectsădeformationăhighlight etc.
License
qq15725/modern-text
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
Repository files navigation
About
đ A text renderer. supports measureăspecial effectsădeformationăhighlight etc.
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published