[reorg] Change OT::Layout::GPOS to OT::Layout::GPOS_impl.

This commit is contained in:
Garret Rieger 2022-06-28 23:26:49 +00:00 committed by Behdad Esfahbod
parent 49ddf069e0
commit 88ef3c5a9a
33 changed files with 45 additions and 45 deletions

View File

@ -7,7 +7,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct Anchor
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct AnchorFormat1
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct AnchorFormat2
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct AnchorFormat3
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct AnchorMatrix
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct ChainContextPos : ChainContext {};

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
enum attach_type_t {
ATTACH_TYPE_NONE = 0X00,

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct ContextPos : Context {};

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct CursivePos
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct EntryExitRecord
{
@ -52,7 +52,7 @@ struct EntryExitRecord
static void
reverse_cursive_minor_offset (hb_glyph_position_t *pos, unsigned int i, hb_direction_t direction, unsigned int new_parent) {
int chain = pos[i].attach_chain(), type = pos[i].attach_type();
if (likely (!chain || 0 == (type & OT::Layout::GPOS::ATTACH_TYPE_CURSIVE)))
if (likely (!chain || 0 == (type & ATTACH_TYPE_CURSIVE)))
return;
pos[i].attach_chain() = 0;

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct ExtensionPos : Extension<ExtensionPos>
{

View File

@ -8,7 +8,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
static void
propagate_attachment_offsets (hb_glyph_position_t *pos,
@ -157,8 +157,8 @@ GPOS::position_finish_offsets (hb_font_t *font, hb_buffer_t *buffer)
}
}
struct GPOS_accelerator_t : Layout::GPOS::GPOS::accelerator_t {
GPOS_accelerator_t (hb_face_t *face) : Layout::GPOS::GPOS::accelerator_t (face) {}
struct GPOS_accelerator_t : Layout::GPOS_impl::GPOS::accelerator_t {
GPOS_accelerator_t (hb_face_t *face) : Layout::GPOS_impl::GPOS::accelerator_t (face) {}
};
}

View File

@ -6,7 +6,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct MarkArray : Array16Of<MarkRecord> /* Array of MarkRecords--in Coverage order */
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct MarkBasePos
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
typedef AnchorMatrix BaseArray; /* base-major--
* in order of BaseCoverage Index--,

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct MarkLigPos
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
typedef AnchorMatrix LigatureAttach; /* component-major--
* in order of writing direction--,

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct MarkMarkPos
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
typedef AnchorMatrix Mark2Array; /* mark2-major--
* in order of Mark2Coverage Index--,

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct MarkRecord
{

View File

@ -6,7 +6,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct PairPos
{

View File

@ -3,7 +3,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct PairValueRecord
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct PairPosFormat2
{

View File

@ -6,7 +6,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct PosLookup : Lookup
{

View File

@ -13,7 +13,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct PosLookupSubTable
{

View File

@ -6,7 +6,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct SinglePos
{

View File

@ -6,7 +6,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct SinglePosFormat1
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
struct SinglePosFormat2
{

View File

@ -5,7 +5,7 @@
namespace OT {
namespace Layout {
namespace GPOS {
namespace GPOS_impl {
typedef HBUINT16 Value;

View File

@ -33,33 +33,33 @@
namespace OT {
using Layout::GPOS::ATTACH_TYPE_MARK;
using Layout::GPOS::ATTACH_TYPE_NONE;
using Layout::GPOS::ATTACH_TYPE_CURSIVE;
using Layout::GPOS::PosLookup;
using Layout::GPOS_impl::ATTACH_TYPE_MARK;
using Layout::GPOS_impl::ATTACH_TYPE_NONE;
using Layout::GPOS_impl::ATTACH_TYPE_CURSIVE;
using Layout::GPOS_impl::PosLookup;
// TODO(garretrieger): Move into new layout directory.
/* Out-of-class implementation for methods recursing */
#ifndef HB_NO_OT_LAYOUT
template <typename context_t>
/*static*/ typename context_t::return_t Layout::GPOS::PosLookup::dispatch_recurse_func (context_t *c, unsigned int lookup_index)
/*static*/ typename context_t::return_t PosLookup::dispatch_recurse_func (context_t *c, unsigned int lookup_index)
{
const Layout::GPOS::PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (lookup_index);
const PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (lookup_index);
return l.dispatch (c);
}
template <>
inline hb_closure_lookups_context_t::return_t
Layout::GPOS::PosLookup::dispatch_recurse_func<hb_closure_lookups_context_t> (hb_closure_lookups_context_t *c, unsigned this_index)
PosLookup::dispatch_recurse_func<hb_closure_lookups_context_t> (hb_closure_lookups_context_t *c, unsigned this_index)
{
const Layout::GPOS::PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (this_index);
const PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (this_index);
return l.closure_lookups (c, this_index);
}
template <>
inline bool Layout::GPOS::PosLookup::dispatch_recurse_func<hb_ot_apply_context_t> (hb_ot_apply_context_t *c, unsigned int lookup_index)
inline bool PosLookup::dispatch_recurse_func<hb_ot_apply_context_t> (hb_ot_apply_context_t *c, unsigned int lookup_index)
{
const Layout::GPOS::PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (lookup_index);
const PosLookup &l = c->face->table.GPOS.get_relaxed ()->table->get_lookup (lookup_index);
unsigned int saved_lookup_props = c->lookup_props;
unsigned int saved_lookup_index = c->lookup_index;
c->set_lookup_index (lookup_index);

View File

@ -55,7 +55,7 @@
#include "hb-aat-layout-opbd-table.hh" // Just so we compile it; unused otherwise.
using OT::Layout::GSUB::GSUB;
using OT::Layout::GPOS::GPOS;
using OT::Layout::GPOS_impl::GPOS;
/**
* SECTION:hb-ot-layout

View File

@ -41,7 +41,7 @@
#include "hb-ot-math-table.hh"
using OT::Layout::GSUB::GSUB;
using OT::Layout::GPOS::GPOS;
using OT::Layout::GPOS_impl::GPOS;
typedef hb_hashmap_t<unsigned, hb::unique_ptr<hb_set_t>> script_langsys_map;
#ifndef HB_NO_SUBSET_CFF

View File

@ -56,7 +56,7 @@
#include "hb-repacker.hh"
using OT::Layout::GSUB::GSUB;
using OT::Layout::GPOS::GPOS;
using OT::Layout::GPOS_impl::GPOS;
/**
* SECTION:hb-subset