pdfium/third_party/harfbuzz/pdfium-config-override.h
Andy Phan 8197a684b3 Roll third_party/harfbuzz/src/ a243dcb5c..e6741e220 (406 commits)
a243dcb5c4..e6741e2205

[1] introduces a relationship between HB_NO_DRAW and HB_NO_OT_FONT_CFF
in hb-config.hh. PDFium wants HB_NO_DRAW but still needs CFF support for
subsetting. Use the same temporary override as
https://crrev.com/c/7799984.

Created with:
  roll-dep third_party/harfbuzz/src

[1]
bd645e5573

Bug: 507839557
Change-Id: I2a12d8ae729c9924b694eecb51c9eb3db263afbb
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/147054
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Andy Phan <andyphan@chromium.org>
2026-05-07 16:47:39 -07:00

20 lines
713 B
C

/* Copyright 2026 The PDFium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef PDFIUM_CONFIG_OVERRIDE_H
#define PDFIUM_CONFIG_OVERRIDE_H
/* HarfBuzz 14.2.0 introduced a relationship between HB_NO_DRAW and
* HB_NO_OT_FONT_CFF in hb-config.hh. PDFium wants HB_NO_DRAW to reduce binary
* size, but still needs CFF support for variable font subsetting.
* This override unsets HB_NO_OT_FONT_CFF after hb-config.hh has set it.
* TODO(crbug.com/507839557): Need to remove config override workaround after
* https://github.com/harfbuzz/harfbuzz/issues/5955 is resolved.
*/
#undef HB_NO_OT_FONT_CFF
#endif /* PDFIUM_CONFIG_OVERRIDE_H */