diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-01-11 10:57:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-01-11 11:23:42 +0000 |
| commit | 04ae4d393603da286d78a72c4f60c545c03b35e8 (patch) | |
| tree | c7ce2f66a96d76408587bc22c9b88688a2c943e0 /src/font_size.cc | |
| parent | 586f9b90034640c82eb51d7e4573f4125a2f4ad0 (diff) | |
Replace DCP parser with basic version that uses libdcp.
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 { |
