24 return pixels(lhs.density_scale() * rhs.in(dips));
66 return pixels_per_em(lhs.density_scale() * rhs.in(dips_per_em));
109 return *dips_per_em_ptr * lhs;
111 return *pixels_per_em_ptr * lhs;
113 return *points_per_em_ptr * lhs;
129 [[nodiscard]]
constexpr float density_scale()
const noexcept
160 auto const base_density = std::to_underlying(type) & 0xf8;
163 auto const index =
static_cast<unsigned int>(ppi.in(pixels_per_inch)) * 4 / base_density;
168 if (index < scale_table.size()) {
169 return scale_table[index];
171 return scale_table.
back();