Skip to content

Commit bf8ef54

Browse files
committed
Formatting.
1 parent b5aed5d commit bf8ef54

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

ift/encoder/encoder.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,14 @@ StatusOr<FontData> Encoder::GenerateBaseGvar(
766766
return result;
767767
}
768768

769-
void Encoder::SetMixedModeSubsettingFlagsIfNeeded(hb_subset_input_t* input) const {
769+
void Encoder::SetMixedModeSubsettingFlagsIfNeeded(
770+
hb_subset_input_t* input) const {
770771
if (IsMixedMode()) {
771772
// Mixed mode requires stable gids set flags accordingly.
772773
hb_subset_input_set_flags(
773774
input, hb_subset_input_get_flags(input) | HB_SUBSET_FLAGS_RETAIN_GIDS |
774-
HB_SUBSET_FLAGS_IFTB_REQUIREMENTS | // TODO(garretrieger): remove this
775+
HB_SUBSET_FLAGS_IFTB_REQUIREMENTS | // TODO(garretrieger):
776+
// remove this
775777
HB_SUBSET_FLAGS_NOTDEF_OUTLINE |
776778
HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED);
777779
}
@@ -785,10 +787,10 @@ StatusOr<FontData> Encoder::CutSubset(hb_face_t* font,
785787
}
786788

787789
if (IsMixedMode() && def.IsVariable()) {
788-
// In mixed mode glyph keyed patches handles gvar, except for when design space
789-
// is expanded, in which case a gvar table should be patched in that only
790-
// has coverage of the base (root) subset definition + the current design
791-
// space.
790+
// In mixed mode glyph keyed patches handles gvar, except for when design
791+
// space is expanded, in which case a gvar table should be patched in that
792+
// only has coverage of the base (root) subset definition + the current
793+
// design space.
792794
//
793795
// Create such a gvar table here and overwrite the one that was otherwise
794796
// generated by the normal subsetting operation. The patch generation will

ift/encoder/encoder_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ TEST_F(EncoderTest, Encode_ThreeSubsets_Mixed) {
571571

572572
ASSERT_EQ(encoder.Patches().size(), 3);
573573

574-
// TODO(garretrieger): check the glyph keyed mapping entries in the base and check
574+
// TODO(garretrieger): check the glyph keyed mapping entries in the base and
575+
// check
575576
// they are unmodified in derived fonts.
576577
// TODO(garretrieger): apply a glyph keyed patch and then check that you
577578
// can still form the graph with derived fonts containing the

ift/glyph_keyed_diff_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ class GlyphKeyedDiffTest : public ::testing::Test {
118118
for (uint32_t gid : gids) {
119119
hb_set_add(hb_subset_input_glyph_set(input), gid);
120120
}
121-
hb_subset_input_set_flags(
122-
input,
123-
HB_SUBSET_FLAGS_RETAIN_GIDS | HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED |
124-
HB_SUBSET_FLAGS_IFTB_REQUIREMENTS | HB_SUBSET_FLAGS_NOTDEF_OUTLINE);
121+
hb_subset_input_set_flags(input,
122+
HB_SUBSET_FLAGS_RETAIN_GIDS |
123+
HB_SUBSET_FLAGS_PASSTHROUGH_UNRECOGNIZED |
124+
HB_SUBSET_FLAGS_NOTDEF_OUTLINE);
125125

126126
hb_subset_plan_t* plan = hb_subset_plan_create_or_fail(face.get(), input);
127127
hb_subset_input_destroy(input);

ift/proto/ift_table_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ namespace ift::proto {
3636

3737
class IFTTableTest : public ::testing::Test {
3838
protected:
39-
IFTTableTest()
40-
: roboto_ab(make_hb_face(nullptr)) {
39+
IFTTableTest() : roboto_ab(make_hb_face(nullptr)) {
4140
sample.SetUrlTemplate("fonts/go/here");
4241
sample.SetId({1, 2, 3, 4});
4342
sample.GetPatchMap().AddEntry({30, 32}, 1, TABLE_KEYED_PARTIAL);

0 commit comments

Comments
 (0)