Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::AbsoluteLengthMetrics Struct Reference

A container with ratios for converting absolute lengths, such as "cm" or "in", see https://www.w3.org/TR/css-values/#absolute-lengths. More...

#include "donner/base/RelativeLengthMetrics.h"

Static Public Attributes

static constexpr double kDpi = 96.0
 Hardcoded DPI for computing absolute lengths.
 
static constexpr double kInchesToPixels = kDpi
 1 inch = 96 pixels.
 
static constexpr double kPointsToPixels = kDpi / 72.0
 1 point = 1/72 inch.
 
static constexpr double kCmToPixels = kDpi / 2.54
 1 cm = 1/2.54 inch.
 

Detailed Description

A container with ratios for converting absolute lengths, such as "cm" or "in", see https://www.w3.org/TR/css-values/#absolute-lengths.


The documentation for this struct was generated from the following file: