Skip to content

tani/typography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typography

The typography project serves formatted text with web fonts as a svg image. The service is running on Deno deploy.

On some web pages such as GitHub, we can't use enough CSS for user content, especially font settings. Our project converts the text into an image typeset in the specified font.

Technically, we typeset by downloading the specified font from Google Fonts and embedding it in SVG along with the text. These software are then deployed on the edge network by Deno Deploy to serve images on demand (Fig. 1).


Fig. 1. Overview

API

You can use any font listed on Google Fonts. You just hitted the URL like;

`https://typography.deno.dev/render?text=${text as string}&size=${size as number}&family=${family as string}&weight=${weight as number}&color=${color as string}`

Preview

Please visit https://typography.deno.dev/ . You can explore your favorite fonts!

License and Copyright

Copyright © 2021 TANIGUCHI Masaya All Rights Reserved.

This software is licensed under ther MIT license.

Acknowledgement

The author of this project is supported by Gitpod. They provide the Professional Open Source Plan to him. He uses Gitpod to write this project.