#include <hb.h>
#include <hb-aat.h>
#include <hb-cplusplus.hh>
#include "third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.h"
namespace blink {
namespace {
bool activationSelectorPresent(
hb_face_t* hb_face,
const hb_aat_layout_feature_type_t feature_type,
const hb_aat_layout_feature_selector_t enabled_selector_expectation) { … }
}
OpenTypeCapsSupport::OpenTypeCapsSupport()
: … { … }
OpenTypeCapsSupport::OpenTypeCapsSupport(
const HarfBuzzFace* harfbuzz_face,
FontDescription::FontVariantCaps requested_caps,
FontDescription::FontSynthesisSmallCaps font_synthesis_small_caps,
hb_script_t script)
: … { … }
FontDescription::FontVariantCaps OpenTypeCapsSupport::FontFeatureToUse(
SmallCapsIterator::SmallCapsBehavior source_text_case) { … }
bool OpenTypeCapsSupport::NeedsRunCaseSplitting() { … }
bool OpenTypeCapsSupport::NeedsSyntheticFont(
SmallCapsIterator::SmallCapsBehavior run_case) { … }
CaseMapIntend OpenTypeCapsSupport::NeedsCaseChange(
SmallCapsIterator::SmallCapsBehavior run_case) { … }
OpenTypeCapsSupport::FontFormat OpenTypeCapsSupport::GetFontFormat() const { … }
bool OpenTypeCapsSupport::SupportsFeature(hb_script_t script,
uint32_t tag) const { … }
bool OpenTypeCapsSupport::SupportsAatFeature(uint32_t tag) const { … }
void OpenTypeCapsSupport::DetermineFontSupport(hb_script_t script) { … }
bool OpenTypeCapsSupport::SyntheticSmallCapsAllowed() const { … }
}