summaryrefslogtreecommitdiff
path: root/modules/thai
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 20:07:35 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 20:07:35 +0000
commit80e647a8dbc97662b9d966c0f7a8e1aedea89eed (patch)
treed3a322c28112b7623765847aa32e8e319c576b45 /modules/thai
parente6b83e4264b4ad2ab73a3239d902b4064c75634d (diff)
downloadpango-80e647a8dbc97662b9d966c0f7a8e1aedea89eed.tar.gz
*.c, *.h: Drop trailing whitespace.
2007-01-16 Behdad Esfahbod <behdad@gnome.org> *.c, *.h: Drop trailing whitespace. svn path=/trunk/; revision=2163
Diffstat (limited to 'modules/thai')
-rw-r--r--modules/thai/thai-fc.c28
-rw-r--r--modules/thai/thai-lang.c4
-rw-r--r--modules/thai/thai-ot.c4
-rw-r--r--modules/thai/thai-ot.h2
-rw-r--r--modules/thai/thai-shaper.c22
5 files changed, 30 insertions, 30 deletions
diff --git a/modules/thai/thai-fc.c b/modules/thai/thai-fc.c
index 4414bd93..ebb2e97a 100644
--- a/modules/thai/thai-fc.c
+++ b/modules/thai/thai-fc.c
@@ -63,10 +63,10 @@ static PangoEngineInfo script_engines[] = {
/* TIS-to-Unicode glyph maps for characters 0x80-0xff
*/
static const int tis620_0[128] = {
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
0x0020, 0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07,
0x0e08, 0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f,
0x0e10, 0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17,
@@ -120,10 +120,10 @@ static const int tis620_2[128] = {
};
static const int lao_0[128] = {
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
- /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
+ /**/ 0, 0, 0, 0, 0, 0, 0, 0,
0x0020, 0x0e81, 0x0e82, 0, 0x0e84, 0, 0, 0x0e87,
0x0e88, 0, 0x0e8a, 0, 0, 0x0e8d, 0, 0,
0, 0, 0, 0, 0x0e94, 0x0e95, 0x0e96, 0x0e97,
@@ -162,7 +162,7 @@ thai_get_font_info (PangoFont *font)
{
ThaiFontInfo *font_info;
GQuark info_id = g_quark_from_string ("thai-font-info");
-
+
font_info = g_object_get_qdata (G_OBJECT (font), info_id);
if (!font_info)
@@ -172,7 +172,7 @@ thai_get_font_info (PangoFont *font)
*/
font_info = g_new (ThaiFontInfo, 1);
font_info->font = font;
-
+
/* detect font set by determining availibility of OT ruleset & glyphs */
if (thai_ot_get_ruleset (font))
font_info->font_set = THAI_FONT_TIS;
@@ -182,7 +182,7 @@ thai_get_font_info (PangoFont *font)
font_info->font_set = THAI_FONT_TIS_MAC;
else
font_info->font_set = THAI_FONT_TIS;
-
+
g_object_set_qdata_full (G_OBJECT (font), info_id, font_info, (GDestroyNotify)g_free);
}
@@ -249,18 +249,18 @@ thai_engine_fc_class_init (PangoEngineShapeClass *class)
PANGO_ENGINE_SHAPE_DEFINE_TYPE (ThaiEngineFc, thai_engine_fc,
thai_engine_fc_class_init, NULL)
-void
+void
PANGO_MODULE_ENTRY(init) (GTypeModule *module)
{
thai_engine_fc_register_type (module);
}
-void
+void
PANGO_MODULE_ENTRY(exit) (void)
{
}
-void
+void
PANGO_MODULE_ENTRY(list) (PangoEngineInfo **engines,
int *n_engines)
{
diff --git a/modules/thai/thai-lang.c b/modules/thai/thai-lang.c
index 37c1a2c8..a6fe45c4 100644
--- a/modules/thai/thai-lang.c
+++ b/modules/thai/thai-lang.c
@@ -14,7 +14,7 @@
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the Free Software
+ * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -119,7 +119,7 @@ PANGO_MODULE_ENTRY(exit) (void)
{
}
-void
+void
PANGO_MODULE_ENTRY(list) (PangoEngineInfo **engines, gint *n_engines)
{
*engines = script_engines;
diff --git a/modules/thai/thai-ot.c b/modules/thai/thai-ot.c
index 00b06380..66c129c4 100644
--- a/modules/thai/thai-ot.c
+++ b/modules/thai/thai-ot.c
@@ -33,7 +33,7 @@ maybe_add_gsub_feature (PangoOTRuleset *ruleset,
gulong property_bit)
{
guint feature_index;
-
+
/* 0xffff == default language system */
if (pango_ot_info_find_feature (info, PANGO_OT_TABLE_GSUB,
feature_tag, script_index, 0xffff, &feature_index))
@@ -211,7 +211,7 @@ lao_ot_get_ruleset (PangoFont *font)
}
-void
+void
thai_ot_shape (PangoFont *font,
PangoGlyphString *glyphs)
{
diff --git a/modules/thai/thai-ot.h b/modules/thai/thai-ot.h
index 35252a7a..de18bcdd 100644
--- a/modules/thai/thai-ot.h
+++ b/modules/thai/thai-ot.h
@@ -28,7 +28,7 @@
PangoOTRuleset *
thai_ot_get_ruleset (PangoFont *font);
-void
+void
thai_ot_shape (PangoFont *font,
PangoGlyphString *glyphs);
diff --git a/modules/thai/thai-shaper.c b/modules/thai/thai-shaper.c
index 409b3083..df6c72f1 100644
--- a/modules/thai/thai-shaper.c
+++ b/modules/thai/thai-shaper.c
@@ -116,9 +116,9 @@ static const ThaiShapeTable Lao_shape_table = {
};
static void
-add_glyph (ThaiFontInfo *font_info,
- PangoGlyphString *glyphs,
- gint cluster_start,
+add_glyph (ThaiFontInfo *font_info,
+ PangoGlyphString *glyphs,
+ gint cluster_start,
PangoGlyph glyph,
gboolean combining)
{
@@ -126,10 +126,10 @@ add_glyph (ThaiFontInfo *font_info,
gint index = glyphs->num_glyphs;
pango_glyph_string_set_size (glyphs, index + 1);
-
+
glyphs->glyphs[index].glyph = glyph;
glyphs->glyphs[index].attr.is_cluster_start = combining ? 0 : 1;
-
+
glyphs->log_clusters[index] = cluster_start;
pango_font_get_glyph_extents (font_info->font,
@@ -181,7 +181,7 @@ get_adjusted_glyphs_list (ThaiFontInfo *font_info,
return 1;
}
break;
-
+
case 2:
if (is_char_type (cluster[0], NoTailCons|BotTailCons|SpltTailCons) &&
is_char_type (cluster[1], SaraAm))
@@ -278,7 +278,7 @@ get_adjusted_glyphs_list (ThaiFontInfo *font_info,
return n;
}
break;
-
+
case 3:
if (is_char_type (cluster[0], NoTailCons|BotTailCons|SpltTailCons) &&
is_char_type (cluster[1], Tone) &&
@@ -414,13 +414,13 @@ get_glyphs_list (ThaiFontInfo *font_info,
*/
return get_adjusted_glyphs_list (font_info, cluster,
num_chrs, glyph_lists, &tis620_0_shape_table);
-
+
case THAI_FONT_TIS_MAC:
/* MacIntosh Extension
*/
return get_adjusted_glyphs_list (font_info, cluster,
num_chrs, glyph_lists, &Mac_shape_table);
-
+
case THAI_FONT_TIS_WIN:
/* Microsoft Extension
*/
@@ -505,7 +505,7 @@ get_next_cluster(const char *text,
const char *p;
gint n_chars = 0;
gunichar current;
-
+
for (p = text; p < text + length; p = g_utf8_next_char (p))
{
current = g_utf8_get_char (p);
@@ -523,7 +523,7 @@ get_next_cluster(const char *text,
return p;
}
-void
+void
thai_engine_shape (PangoEngineShape *engine,
PangoFont *font,
const char *text,