[reorg] Change OT::Layout::GPOS to OT::Layout::GPOS_impl.
This commit is contained in:
parent
49ddf069e0
commit
88ef3c5a9a
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct Anchor
|
struct Anchor
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct AnchorFormat1
|
struct AnchorFormat1
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct AnchorFormat2
|
struct AnchorFormat2
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct AnchorFormat3
|
struct AnchorFormat3
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct AnchorMatrix
|
struct AnchorMatrix
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct ChainContextPos : ChainContext {};
|
struct ChainContextPos : ChainContext {};
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
enum attach_type_t {
|
enum attach_type_t {
|
||||||
ATTACH_TYPE_NONE = 0X00,
|
ATTACH_TYPE_NONE = 0X00,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct ContextPos : Context {};
|
struct ContextPos : Context {};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct CursivePos
|
struct CursivePos
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct EntryExitRecord
|
struct EntryExitRecord
|
||||||
{
|
{
|
||||||
|
@ -52,7 +52,7 @@ struct EntryExitRecord
|
||||||
static void
|
static void
|
||||||
reverse_cursive_minor_offset (hb_glyph_position_t *pos, unsigned int i, hb_direction_t direction, unsigned int new_parent) {
|
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();
|
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;
|
return;
|
||||||
|
|
||||||
pos[i].attach_chain() = 0;
|
pos[i].attach_chain() = 0;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct ExtensionPos : Extension<ExtensionPos>
|
struct ExtensionPos : Extension<ExtensionPos>
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
static void
|
static void
|
||||||
propagate_attachment_offsets (hb_glyph_position_t *pos,
|
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 {
|
struct GPOS_accelerator_t : Layout::GPOS_impl::GPOS::accelerator_t {
|
||||||
GPOS_accelerator_t (hb_face_t *face) : Layout::GPOS::GPOS::accelerator_t (face) {}
|
GPOS_accelerator_t (hb_face_t *face) : Layout::GPOS_impl::GPOS::accelerator_t (face) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct MarkArray : Array16Of<MarkRecord> /* Array of MarkRecords--in Coverage order */
|
struct MarkArray : Array16Of<MarkRecord> /* Array of MarkRecords--in Coverage order */
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct MarkBasePos
|
struct MarkBasePos
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
typedef AnchorMatrix BaseArray; /* base-major--
|
typedef AnchorMatrix BaseArray; /* base-major--
|
||||||
* in order of BaseCoverage Index--,
|
* in order of BaseCoverage Index--,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct MarkLigPos
|
struct MarkLigPos
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
typedef AnchorMatrix LigatureAttach; /* component-major--
|
typedef AnchorMatrix LigatureAttach; /* component-major--
|
||||||
* in order of writing direction--,
|
* in order of writing direction--,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct MarkMarkPos
|
struct MarkMarkPos
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
typedef AnchorMatrix Mark2Array; /* mark2-major--
|
typedef AnchorMatrix Mark2Array; /* mark2-major--
|
||||||
* in order of Mark2Coverage Index--,
|
* in order of Mark2Coverage Index--,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct MarkRecord
|
struct MarkRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct PairPos
|
struct PairPos
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct PairValueRecord
|
struct PairValueRecord
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct PairPosFormat2
|
struct PairPosFormat2
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct PosLookup : Lookup
|
struct PosLookup : Lookup
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct PosLookupSubTable
|
struct PosLookupSubTable
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct SinglePos
|
struct SinglePos
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct SinglePosFormat1
|
struct SinglePosFormat1
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
struct SinglePosFormat2
|
struct SinglePosFormat2
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
namespace Layout {
|
namespace Layout {
|
||||||
namespace GPOS {
|
namespace GPOS_impl {
|
||||||
|
|
||||||
typedef HBUINT16 Value;
|
typedef HBUINT16 Value;
|
||||||
|
|
||||||
|
|
|
@ -33,33 +33,33 @@
|
||||||
|
|
||||||
namespace OT {
|
namespace OT {
|
||||||
|
|
||||||
using Layout::GPOS::ATTACH_TYPE_MARK;
|
using Layout::GPOS_impl::ATTACH_TYPE_MARK;
|
||||||
using Layout::GPOS::ATTACH_TYPE_NONE;
|
using Layout::GPOS_impl::ATTACH_TYPE_NONE;
|
||||||
using Layout::GPOS::ATTACH_TYPE_CURSIVE;
|
using Layout::GPOS_impl::ATTACH_TYPE_CURSIVE;
|
||||||
using Layout::GPOS::PosLookup;
|
using Layout::GPOS_impl::PosLookup;
|
||||||
|
|
||||||
// TODO(garretrieger): Move into new layout directory.
|
// TODO(garretrieger): Move into new layout directory.
|
||||||
/* Out-of-class implementation for methods recursing */
|
/* Out-of-class implementation for methods recursing */
|
||||||
#ifndef HB_NO_OT_LAYOUT
|
#ifndef HB_NO_OT_LAYOUT
|
||||||
template <typename context_t>
|
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);
|
return l.dispatch (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
inline hb_closure_lookups_context_t::return_t
|
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);
|
return l.closure_lookups (c, this_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
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_props = c->lookup_props;
|
||||||
unsigned int saved_lookup_index = c->lookup_index;
|
unsigned int saved_lookup_index = c->lookup_index;
|
||||||
c->set_lookup_index (lookup_index);
|
c->set_lookup_index (lookup_index);
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
#include "hb-aat-layout-opbd-table.hh" // Just so we compile it; unused otherwise.
|
#include "hb-aat-layout-opbd-table.hh" // Just so we compile it; unused otherwise.
|
||||||
|
|
||||||
using OT::Layout::GSUB::GSUB;
|
using OT::Layout::GSUB::GSUB;
|
||||||
using OT::Layout::GPOS::GPOS;
|
using OT::Layout::GPOS_impl::GPOS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:hb-ot-layout
|
* SECTION:hb-ot-layout
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
#include "hb-ot-math-table.hh"
|
#include "hb-ot-math-table.hh"
|
||||||
|
|
||||||
using OT::Layout::GSUB::GSUB;
|
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;
|
typedef hb_hashmap_t<unsigned, hb::unique_ptr<hb_set_t>> script_langsys_map;
|
||||||
#ifndef HB_NO_SUBSET_CFF
|
#ifndef HB_NO_SUBSET_CFF
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
#include "hb-repacker.hh"
|
#include "hb-repacker.hh"
|
||||||
|
|
||||||
using OT::Layout::GSUB::GSUB;
|
using OT::Layout::GSUB::GSUB;
|
||||||
using OT::Layout::GPOS::GPOS;
|
using OT::Layout::GPOS_impl::GPOS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:hb-subset
|
* SECTION:hb-subset
|
||||||
|
|
Loading…
Reference in New Issue