You can find the typogram library at https://google.github.io/typograms/. After you load the script, you can now write scripts of type text/typogram:
https://google.github.io/typograms/
text/typogram