summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/TextMetrics.idl
blob: a14300cbf1c03dca0b90f53970e7c4d7dfa32ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
interface TextMetrics {
  // x-direction
  readonly attribute double width; // advance width
  readonly attribute double actualBoundingBoxLeft;
  readonly attribute double actualBoundingBoxRight;

  // y-direction
  readonly attribute double fontBoundingBoxAscent;
  readonly attribute double fontBoundingBoxDescent;
  readonly attribute double actualBoundingBoxAscent;
  readonly attribute double actualBoundingBoxDescent;
  readonly attribute double emHeightAscent;
  readonly attribute double emHeightDescent;
  readonly attribute double hangingBaseline;
  readonly attribute double alphabeticBaseline;
  readonly attribute double ideographicBaseline;
};