mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 08:49:30 +00:00
Add units-from-em conversion
An em is a unit of measurement in typography, equal to the point size of the current font. It should be possible to convert a value expressed in em to ClutterUnits by using the current font and the current DPI as stored by the default backend.
This commit is contained in:
@ -33,6 +33,8 @@ CLUTTER_UNITS_FROM_FLOAT
|
||||
CLUTTER_UNITS_TO_FLOAT
|
||||
CLUTTER_UNITS_FROM_INT
|
||||
CLUTTER_UNITS_TO_INT
|
||||
|
||||
<SUBSECTION>
|
||||
CLUTTER_UNITS_FROM_DEVICE
|
||||
CLUTTER_UNITS_TO_DEVICE
|
||||
CLUTTER_UNITS_FROM_FIXED
|
||||
@ -41,8 +43,10 @@ CLUTTER_UNITS_FROM_PANGO_UNIT
|
||||
CLUTTER_UNITS_TO_PANGO_UNIT
|
||||
CLUTTER_UNITS_FROM_MM
|
||||
CLUTTER_UNITS_FROM_POINTS
|
||||
CLUTTER_UNITS_FROM_EM
|
||||
clutter_units_mm
|
||||
clutter_units_pt
|
||||
clutter_units_em
|
||||
|
||||
<SUBSECTION>
|
||||
CLUTTER_MAXUNIT
|
||||
|
Reference in New Issue
Block a user