# FontMetrics
[![Build Status](https://travis-ci.org/boydm/scenic.svg?branch=master)](https://travis-ci.org/boydm/font_metrics)
This library works with pre-generated font metrics data to explore and calculate various
measurements of text in a given font and size.
For example, if you want to know how wide or tall a string of text will be when
it is rendered in a given font at a given size, then this can help you out.
This library is intended to be used with the [Scenic](https://hex.pm/packages/scenic)
framework, but doesn't depend on it, so it is usable elsewhere.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `font_metrics` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:font_metrics, "~> 0.3"}
]
end
```
## Generating Metrics
You will need to use another package to compile the font metrics data from a font.
This can be done with the truetype_metrics package. Look for it on hex... In the meantime, metrics data for both Roboto and RobotoMono can be found in the Scenic project.