Skip to content

Simple Dart library to pre-determine the size of texts to be rendered in the DOM.

License

Notifications You must be signed in to change notification settings

almstrand/lib_textent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textent

Dart library to pre-determine the size of texts to be rendered in the DOM.

Sample usage

Textent.measureTexts(["Measure me", "Me too!"], "15px arial,sans-serif", cssMaxWidthProperty: "100px")
.then((Map<String, TextSize> textSizes) {
  print("Our sizes are $textSizes");
});

Textent.measureText("Measure me", "15px arial,sans-serif", cssMaxWidthProperty: "100px")
.then((TextSize textSize) {
  print("My size is $textSize");
});

About

Simple Dart library to pre-determine the size of texts to be rendered in the DOM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages