diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-11 14:57:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-11 14:57:02 +0000 |
| commit | 7114a99bf210c5d41a13161aea868fe68dd06e84 (patch) | |
| tree | 5dc29fbcc15acd21d9c344d5b9cdb3789009adf9 /src/font_size.cc | |
| parent | 8fd43fface7757bd0d7228ff0490a8c8ad074175 (diff) | |
Rudimentary SSA parser.
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 d11ee89..f3e6c89 100644 --- a/src/font_size.cc +++ b/src/font_size.cc @@ -40,3 +40,11 @@ FontSize::points (int screen_height_in_points) const return _proportional.get() * screen_height_in_points; } + +FontSize +FontSize::from_points (int p) +{ + FontSize s; + s.set_points (p); + return s; +} |
