diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-01-11 10:57:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-01-11 10:58:11 +0000 |
| commit | f528fc50162db6fcecbaa2cd6121c7ee86a82777 (patch) | |
| tree | b5dec339a41dee33fb3ddbc31b1054e0008feffc /src/font_size.cc | |
| parent | efb00e9649aa03a2c12bb6a63c5e7efdfd99506a (diff) | |
Replace DCP parser with basic version that uses libdcp.libdcp-again
Diffstat (limited to 'src/font_size.cc')
| -rw-r--r-- | src/font_size.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/font_size.cc b/src/font_size.cc index 5e5fd4c..a208867 100644 --- a/src/font_size.cc +++ b/src/font_size.cc @@ -49,6 +49,14 @@ FontSize::from_points (int p) return s; } +FontSize +FontSize::from_proportional (float p) +{ + FontSize s; + s.set_proportional (p); + return s; +} + bool FontSize::specified () const { |
