Coverage Report

Created: 2025-10-13 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/ots/src/head.h
Line
Count
Source
1
// Copyright (c) 2009-2017 The OTS Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef OTS_HEAD_H_
6
#define OTS_HEAD_H_
7
8
#include "ots.h"
9
10
namespace ots {
11
12
class OpenTypeHEAD : public Table {
13
 public:
14
  explicit OpenTypeHEAD(Font *font, uint32_t tag)
15
24.2k
      : Table(font, tag, tag) { }
16
17
  bool Parse(const uint8_t *data, size_t length);
18
  bool Serialize(OTSStream *out);
19
20
  uint32_t revision;
21
  uint16_t flags;
22
  uint16_t upem;
23
  uint64_t created;
24
  uint64_t modified;
25
26
  int16_t xmin, xmax;
27
  int16_t ymin, ymax;
28
29
  uint16_t mac_style;
30
  uint16_t min_ppem;
31
  int16_t index_to_loc_format;
32
};
33
34
}  // namespace ots
35
36
#endif  // OTS_HEAD_H_