summaryrefslogtreecommitdiff
path: root/modules/hebrew/hebrew-shaper.h
blob: 612de35bfd569884656361bd3b315243db924372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Pango
 * hebrew-shaper.h: Hebrew shaper internal functions
 *
 * Copyright (c) 2001 by Sun Microsystems, Inc.
 * Author: Chookij Vanatham <Chookij.Vanatham@Eng.Sun.COM>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * 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 Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef HEBREW_SHAPER_H
#define HEBREW_SHAPER_H

char *
hebrew_shaper_get_next_cluster(const char	*text,
			       gint		length,
			       gunichar       *cluster,
			       gint		*num_chrs);

void
hebrew_shaper_get_cluster_kerning(gunichar            *cluster,
				  gint                cluster_length,
				  PangoRectangle      ink_rect[],

				  /* input and output */
				  gint                width[],
				  gint                x_offset[],
				  gint                y_offset[]);

void
hebrew_shaper_swap_range (PangoGlyphString *glyphs,
			  int               start,
			  int               end);

void
hebrew_shaper_bidi_reorder(PangoGlyphString *glyphs);

#endif