| Class FT2::SizeMetrics |
|
| Methods |
| Public Class methods |
| initialize(VALUE self) |
Constructor for FT2::SizeMetrics class.
This method is currently empty. You should never call this method directly unless you're instantiating a derived class (ie, you know what you're doing).
| Public Instance methods |
| x_ppem(VALUE self) |
Get the X pixels per EM of this FT2::SizeMetrics object.
Description:
x_ppem stands for the size in integer pixels of the EM square. which also is the horizontal character pixel size.
Examples:
x_ppem = face.size.metrics.x_ppem
| y_ppem(VALUE self) |
Get the Y pixels per EM of this FT2::SizeMetrics object.
Description:
y_ppem stands for the size in integer pixels of the EM square. which also is the vertical character pixel size.
Examples:
y_ppem = face.size.metrics.y_ppem
| x_scale(VALUE self) |
Get the horizontal scale of a FT2::SizeMetrics object.
Description:
Scale that is used to directly scale horizontal distances from design space to 1/64th of device pixels.
Examples:
x_scale = face.size.metrics.x_scale
| y_scale(VALUE self) |
Get the vertical scale of a FT2::SizeMetrics object.
Description:
Scale that is used to directly scale vertical distances from design space to 1/64th of device pixels.
Examples:
y_scale = face.size.metrics.y_scale