[pango/harfbuzz-ng] [GSUB] Minor
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango/harfbuzz-ng] [GSUB] Minor
- Date: Wed, 20 May 2009 15:27:26 -0400 (EDT)
commit 4781df2c257883e3507167218fd2bedc739571a2
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon May 18 15:32:40 2009 -0400
[GSUB] Minor
---
pango/opentype/hb-ot-layout-gsub-private.h | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/pango/opentype/hb-ot-layout-gsub-private.h b/pango/opentype/hb-ot-layout-gsub-private.h
index fc92c62..2f3dd6f 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.h
+++ b/pango/opentype/hb-ot-layout-gsub-private.h
@@ -635,8 +635,7 @@ struct SubstLookupSubTable {
friend struct SubstLookup;
- inline bool substitute (LOOKUP_ARGS_DEF,
- unsigned int lookup_type) const {
+ inline bool substitute (LOOKUP_ARGS_DEF, unsigned int lookup_type) const {
switch (lookup_type) {
case GSUB_Single: return u.single->substitute (LOOKUP_ARGS);
@@ -644,7 +643,7 @@ struct SubstLookupSubTable {
case GSUB_Alternate: return u.alternate->substitute (LOOKUP_ARGS);
case GSUB_Ligature: return u.ligature->substitute (LOOKUP_ARGS);
case GSUB_Context: return u.context->substitute (LOOKUP_ARGS);
- case GSUB_ChainContext: return u.chainingContext->substitute (LOOKUP_ARGS);
+ case GSUB_ChainContext: return u.chainContext->substitute (LOOKUP_ARGS);
case GSUB_Extension: return u.extension->substitute (LOOKUP_ARGS);
case GSUB_ReverseChainSingle: return u.reverseChainContextSingle->substitute (LOOKUP_ARGS);
default:return false;
@@ -659,7 +658,7 @@ struct SubstLookupSubTable {
AlternateSubst alternate[];
LigatureSubst ligature[];
ContextSubst context[];
- ChainContextSubst chainingContext[];
+ ChainContextSubst chainContext[];
ExtensionSubst extension[];
ReverseChainSingleSubst reverseChainContextSingle[];
} u;
@@ -707,15 +706,13 @@ struct SubstLookup : Lookup {
unsigned int lookup_flag = get_flag ();
for (unsigned int i = 0; i < get_subtable_count (); i++)
- if (get_subtable (i).substitute (LOOKUP_ARGS,
- lookup_type))
+ if (get_subtable (i).substitute (LOOKUP_ARGS, lookup_type))
return true;
return false;
}
- inline bool substitute_once (hb_ot_layout_t *layout,
- hb_buffer_t *buffer) const {
+ inline bool substitute_once (hb_ot_layout_t *layout, hb_buffer_t *buffer) const {
unsigned int lookup_flag = get_flag ();
@@ -806,8 +803,7 @@ inline bool ExtensionSubstFormat1::substitute (LOOKUP_ARGS_DEF) const {
if (HB_UNLIKELY (lookup_type == GSUB_Extension))
return false;
- return (*(SubstLookupSubTable *)(((char *) this) + get_offset ())).substitute (LOOKUP_ARGS,
- lookup_type);
+ return (*(SubstLookupSubTable *)(((char *) this) + get_offset ())).substitute (LOOKUP_ARGS, lookup_type);
}
static inline bool substitute_lookup (LOOKUP_ARGS_DEF, unsigned int lookup_index) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]