w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Segment.h
Go to the documentation of this file.
1 /* GRAPHITE2 LICENSING
2 
3  Copyright 2010, SIL International
4  All rights reserved.
5 
6  This library is free software; you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation; either version 2.1 of License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should also have received a copy of the GNU Lesser General Public
17  License along with this library in the file named "LICENSE".
18  If not, write to the Free Software Foundation, 51 Franklin Street,
19  Suite 500, Boston, MA 02110-1335, USA or visit their web page on the
20  internet at http://www.fsf.org/licenses/lgpl.html.
21 
22  Alternatively, the contents of this file may be used under the terms
23  of the Mozilla Public License (http://mozilla.org/MPL) or the GNU
24  General Public License, as published by the Free Software Foundation,
25  either version 2 of the License or (at your option) any later version.
26 */
27 #pragma once
28 
29 #include "graphite2/Types.h"
30 #include "graphite2/Font.h"
31 
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
39  /* after break weights */
45  /* before break weights */
50  gr_breakBeforeClip = -40
51 };
52 
54  /// Indicates that this segment is a complete line
56  /// Indicates that the start of the slot list is not at the start of a line
58  /// Indicates that the end of the slot list is not at the end of a line
60 };
61 
62 /** Used for looking up slot attributes. Most are already available in other functions **/
64  /// adjusted glyph advance in x direction in design units
66  /// adjusted glyph advance in y direction (usually 0) in design units
68  /// returns 0. Deprecated.
70  /// This slot attaches to its parent at the given design units in the x direction
72  /// This slot attaches to its parent at the given design units in the y direction
74  /// This slot attaches to its parent at the given glyph point (not implemented)
76  /// x-direction adjustment from the given glyph point (not implemented)
78  /// y-direction adjustment from the given glyph point (not implemented)
80  /// Where on this glyph should align with the attachment point on the parent glyph in the x-direction.
82  /// Where on this glyph should align with the attachment point on the parent glyph in the y-direction
84  /// Which glyph point on this glyph should align with the attachment point on the parent glyph (not implemented).
86  /// Adjustment to gr_slatWithGpt in x-direction (not implemented)
88  /// Adjustment to gr_slatWithGpt in y-direction (not implemented)
90  /// Attach at given nesting level (not implemented)
92  /// Line break breakweight for this glyph
94  /// Ligature component reference (not implemented)
96  /// bidi directionality of this glyph (not implemented)
98  /// Whether insertion is allowed before this glyph
100  /// Final positioned position of this glyph relative to its parent in x-direction in pixels
102  /// Final positioned position of this glyph relative to its parent in y-direction in pixels
104  /// Amount to shift glyph by in x-direction design units
106  /// Amount to shift glyph by in y-direction design units
108  /// attribute user1
110  /// not implemented
112  /// not implemented
114  /// Amount this slot can stretch (not implemented)
116  /// Amount this slot can shrink (not implemented)
118  /// Granularity by which this slot can stretch or shrink (not implemented)
120  /// Justification weight for this glyph (not implemented)
122  /// Amount this slot mush shrink or stretch in design units
124  /// SubSegment split point
126  /// User defined attribute, see subattr for user attr number
128  /// Bidi level
130  /// Collision flags
132  /// Collision constraint rectangle left (bl.x)
134  /// Collision constraint rectangle lower (bl.y)
136  /// Collision constraint rectangle right (tr.x)
138  /// Collision constraint rectangle upper (tr.y)
140  /// Collision shift x
142  /// Collision shift y
144  /// Collision margin
146  /// Margin cost weight
148  // Additional glyph that excludes movement near this one:
152  // Collision sequence enforcing attributes:
162 
163  /// not implemented
165  /// not implemented
167 };
168 
170  /// Underlying paragraph direction is RTL
171  gr_rtl = 1,
172  /// Set this to not run the bidi pass internally, even if the font asks for it.
173  /// This presumes that the segment is in a single direction. Most of the time
174  /// this bit should be set unless you know you are passing full paragraphs of text.
176  /// Disable auto mirroring for rtl text
177  gr_nomirror = 4
178 };
179 
180 typedef struct gr_char_info gr_char_info;
181 typedef struct gr_segment gr_segment;
182 typedef struct gr_slot gr_slot;
183 
184 /** Returns Unicode character for a charinfo.
185  *
186  * @param p Pointer to charinfo to return information on.
187  */
188 GR2_API unsigned int gr_cinfo_unicode_char(const gr_char_info* p/*not NULL*/);
189 
190 /** Returns breakweight for a charinfo.
191  *
192  * @return Breakweight is a number between -50 and 50 indicating the cost of a
193  * break before or after this character. If the value < 0, the absolute value
194  * is this character's contribution to the overall breakweight before it. If the value
195  * > 0, then the value is this character's contribution to the overall breakweight after it.
196  * The overall breakweight between two characters is the maximum of the breakweight
197  * contributions from the characters either side of it. If a character makes no
198  * contribution to the breakweight on one side of it, the contribution is considered
199  * to be 0.
200  * @param p Pointer to charinfo to return information on.
201  */
202 GR2_API int gr_cinfo_break_weight(const gr_char_info* p/*not NULL*/);
203 
204 /** Returns the slot index that after this character is after in the slot stream
205  *
206  * In effect each character is associated with a set of slots and this returns
207  * the index of the last slot in the segment this character is associated with.
208  *
209  * @return after slot index between 0 and gr_seg_n_slots()
210  * @param p Pointer to charinfo to return information on.
211  */
212 GR2_API int gr_cinfo_after(const gr_char_info* p/*not NULL*/);
213 
214 /** Returns the slot index that before this character is before in the slot stream
215  *
216  * In effect each character is associated with a set of slots and this returns
217  * the index of the first slot in the segment this character is associated with.
218  *
219  * @return before slot index between 0 and gr_seg_n_slots()
220  * @param p Pointer to charinfo to return information on.
221  */
222 GR2_API int gr_cinfo_before(const gr_char_info* p/*not NULL*/);
223 
224 /** Returns the code unit index of this character in the input string
225  *
226  * @return code unit index between 0 and the end of the string
227  * @param p Pointer to charinfo to return information on.
228  */
229 GR2_API size_t gr_cinfo_base(const gr_char_info* p/*not NULL*/);
230 
231 /** Returns the number of unicode characters in a string.
232  *
233  * @return number of characters in the string
234  * @param enc Specifies the type of data in the string: utf8, utf16, utf32
235  * @param buffer_begin The start of the string
236  * @param buffer_end Measure up to the first nul or when end is reached, whichever is earliest.
237  * This parameter may be NULL.
238  * @param pError If there is a structural fault in the string, the location is returned
239  * in this variable. If no error occurs, pError will contain NULL. NULL
240  * may be passed for pError if no such information is required.
241  */
242 GR2_API size_t gr_count_unicode_characters(enum gr_encform enc, const void* buffer_begin, const void* buffer_end, const void** pError);
243 
244 /** Creates and returns a segment.
245  *
246  * @return a segment that needs seg_destroy called on it. May return NULL if bad problems
247  * in segment processing.
248  * @param font Gives the size of the font in pixels per em for final positioning. If
249  * NULL, positions are returned in design units, i.e. at a ppm of the upem
250  * of the face.
251  * @param face The face containing all the non-size dependent information.
252  * @param script This is a tag containing a script identifier that is used to choose
253  * which graphite table within the font to use. Maybe 0. Tag may be 4 chars
254  * NULL padded in LSBs or space padded in LSBs.
255  * @param pFeats Pointer to a feature values to be used for the segment. Only one
256  * feature values may be used for a segment. If NULL the default features
257  * for the font will be used.
258  * @param enc Specifies what encoding form the string is in (utf8, utf16, utf32)
259  * @param pStart Start of the string
260  * @param nChars Number of unicode characters to process in the string. The string will
261  * be processed either up to the first NULL or until nChars have been
262  * processed. nChars is also used to initialise the internal memory
263  * allocations of the segment. So it is wise not to make nChars too much
264  * greater than the actual number of characters being processed.
265  * @param dir Specifies whether the segment is processed right to left (1) or left to
266  * right (0) and whether to run the internal bidi pass, if a font requests it.
267  * See enum gr_bidirtl for details.
268  */
269 GR2_API gr_segment* gr_make_seg(const gr_font* font, const gr_face* face, gr_uint32 script, const gr_feature_val* pFeats, enum gr_encform enc, const void* pStart, size_t nChars, int dir);
270 
271 /** Destroys a segment, freeing the memory.
272  *
273  * @param p The segment to destroy
274  */
276 
277 /** Returns the advance for the whole segment.
278  *
279  * Returns the width of the segment up to the next glyph origin after the segment
280  */
281 GR2_API float gr_seg_advance_X(const gr_segment* pSeg/*not NULL*/);
282 
283 /** Returns the height advance for the segment. **/
284 GR2_API float gr_seg_advance_Y(const gr_segment* pSeg/*not NULL*/);
285 
286 /** Returns the number of gr_char_infos in the segment. **/
287 GR2_API unsigned int gr_seg_n_cinfo(const gr_segment* pSeg/*not NULL*/);
288 
289 /** Returns a gr_char_info at a given index in the segment. **/
290 GR2_API const gr_char_info* gr_seg_cinfo(const gr_segment* pSeg/*not NULL*/, unsigned int index/*must be <number_of_CharInfo*/);
291 
292 /** Returns the number of glyph gr_slots in the segment. **/
293 GR2_API unsigned int gr_seg_n_slots(const gr_segment* pSeg/*not NULL*/); //one slot per glyph
294 
295 /** Returns the first gr_slot in the segment.
296  *
297  * The first slot in a segment has a gr_slot_prev_in_segment() of NULL. Slots are owned
298  * by their segment and are destroyed along with the segment.
299  */
300 GR2_API const gr_slot* gr_seg_first_slot(gr_segment* pSeg/*not NULL*/); //may give a base slot or a slot which is attached to another
301 
302 /** Returns the last gr_slot in the segment.
303  *
304  * The last slot in a segment has a gr_slot_next_in_segment() of NULL
305  */
306 GR2_API const gr_slot* gr_seg_last_slot(gr_segment* pSeg/*not NULL*/); //may give a base slot or a slot which is attached to another
307 
308 /** Justifies a linked list of slots for a line to a given width
309  *
310  * Passed a pointer to the start of a linked list of slots corresponding to a line, as
311  * set up by gr_slot_linebreak_before, this function will position the glyphs in the line
312  * to take up the given width. It is possible to specify a subrange within the line to process.
313  * This allows skipping of line initial or final whitespace, for example. While this will ensure
314  * that the subrange fits width, the line will still be positioned with the first glyph of the
315  * line at 0. So the resulting positions may be beyond width.
316  *
317  * @return float The resulting width of the range of slots justified.
318  * @param pSeg Pointer to the segment
319  * @param pStart Pointer to the start of the line linked list (including skipped characters)
320  * @param pFont Font to use for positioning
321  * @param width Width in pixels in which to fit the line. If < 0. don't adjust natural width, just run justification passes
322  * to handle line end contextuals, if there are any.
323  * @param flags Indicates line ending types. Default is linked list is a full line
324  * @param pFirst If not NULL, the first slot in the list to be considered part of the line (so can skip)
325  * @param pLast If not NULL, the last slot to process in the line (allow say trailing whitespace to be skipped)
326  */
327 GR2_API float gr_seg_justify(gr_segment* pSeg/*not NULL*/, const gr_slot* pStart/*not NULL*/, const gr_font *pFont, double width, enum gr_justFlags flags, const gr_slot* pFirst, const gr_slot* pLast);
328 
329 /** Returns the next slot along in the segment.
330  *
331  * Slots are held in a linked list. This returns the next in the linked list. The slot
332  * may or may not be attached to another slot. Returns NULL at the end of the segment.
333  */
335 
336 /** Returns the previous slot along in the segment.
337  *
338  * Slots are held in a doubly linked list. This returns the previos slot in the linked
339  * list. This slot may or may not be attached to it. Returns NULL at the start of the
340  * segment.
341  */
343 
344 /** Returns the attachment parent slot of this slot.
345  *
346  * Attached slots form a tree. This returns the parent of this slot in that tree. A
347  * base glyph which is not attached to another glyph, always returns NULL.
348  */
350 
351 /** Returns the first slot attached to this slot.
352  *
353  * Attached slots form a singly linked list from the parent. This returns the first
354  * slot in that list. Note that this is a reference to another slot that is also in
355  * the main segment doubly linked list.
356  *
357  * if gr_slot_first_attachment(p) != NULL then gr_slot_attached_to(gr_slot_first_attachment(p)) == p.
358  */
360 
361 /** Returns the next slot attached to our attachment parent.
362  *
363  * This returns the next slot in the singly linked list of slots attached to this
364  * slot's parent. If there are no more such slots, NULL is returned. If there is
365  * no parent, i.e. the passed slot is a cluster base, then the next cluster base
366  * in graphical order (ltr, even for rtl text) is returned.
367  *
368  * if gr_slot_next_sibling_attachment(p) != NULL then gr_slot_attached_to(gr_slot_next_sibling_attachment(p)) == gr_slot_attached_to(p).
369  */
371 
372 
373 /** Returns glyph id of the slot
374  *
375  * Each slot has a glyphid which is rendered at the position given by the slot. This
376  * glyphid is the real glyph to be rendered and never a pseudo glyph.
377  */
378 GR2_API unsigned short gr_slot_gid(const gr_slot* p);
379 
380 /** Returns X offset of glyph from start of segment **/
381 GR2_API float gr_slot_origin_X(const gr_slot* p);
382 
383 /** Returns Y offset of glyph from start of segment **/
384 GR2_API float gr_slot_origin_Y(const gr_slot* p);
385 
386 /** Returns the glyph advance for this glyph as adjusted for kerning
387  *
388  * @param p Slot to give results for
389  * @param face gr_face of the glyphs. May be NULL if unhinted advances used
390  * @param font gr_font to scale for pixel results. If NULL returns design
391  * units advance. If not NULL then returns pixel advance based
392  * on hinted or scaled glyph advances in the font. face must be
393  * passed for hinted advances to be used.
394  */
395 GR2_API float gr_slot_advance_X(const gr_slot* p, const gr_face* face, const gr_font *font);
396 
397 /** Returns the vertical advance for the glyph in the slot adjusted for kerning
398  *
399  * Returns design units unless font is not NULL in which case the pixel value
400  * is returned scaled for the given font
401  */
402 GR2_API float gr_slot_advance_Y(const gr_slot* p, const gr_face* face, const gr_font *font);
403 
404 /** Returns the gr_char_info index before us
405  *
406  * Returns the index of the gr_char_info that a cursor before this slot, would put
407  * an underlying cursor before. This may also be interpretted as each slot holding
408  * a set of char_infos that it is associated with and this function returning the
409  * index of the char_info with lowest index, from this set.
410  */
411 GR2_API int gr_slot_before(const gr_slot* p/*not NULL*/);
412 
413 /** Returns the gr_char_info index after us
414  *
415  * Returns the index of the gr_char_info that a cursor after this slot would put an
416  * underlying cursor after. This may also be interpretted as each slot holding a set
417  * of char_infos that it is associated with and this function returning the index of
418  * the char_info with the highest index, from this set.
419  */
420 GR2_API int gr_slot_after(const gr_slot* p/*not NULL*/);
421 
422 /** Returns the index of this slot in the segment
423  *
424  * Returns the index given to this slot during final positioning. This corresponds
425  * to the value returned br gr_cinfo_before() and gr_cinfo_after()
426  */
427 GR2_API unsigned int gr_slot_index(const gr_slot* p/*not NULL*/);
428 
429 /** Return a slot attribute value
430  *
431  * Given a slot and an attribute along with a possible subattribute, return the
432  * corresponding value in the slot. See enum gr_attrCode for details of each attribute.
433  */
434 GR2_API int gr_slot_attr(const gr_slot* p/*not NULL*/, const gr_segment* pSeg/*not NULL*/, enum gr_attrCode index, gr_uint8 subindex); //tbd - do we need to expose this?
435 
436 /** Returns whether text may be inserted before this glyph.
437  *
438  * This indicates whether a cursor can be put before this slot. It applies to
439  * base glyphs that have no parent as well as attached glyphs that have the
440  * .insert attribute explicitly set to true. This is the primary mechanism
441  * for identifying contiguous sequences of base plus diacritics.
442  */
444 
445 /** Returns the original gr_char_info index this slot refers to.
446  *
447  * Each Slot has a gr_char_info that it originates from. This is that gr_char_info.
448  * The index is passed to gr_seg_cinfo(). This information is useful for testing.
449  */
450 GR2_API int gr_slot_original(const gr_slot* p/*not NULL*/);
451 
452 /** Breaks a segment into lines.
453  *
454  * Breaks the slot linked list at the given point in the linked list. It is up
455  * to the application to keep track of the first slot on each line.
456  */
457 GR2_API void gr_slot_linebreak_before(gr_slot *p/*not NULL*/);
458 
459 #ifdef __cplusplus
460 }
461 #endif
#define width(a)
Definition: aptex-macros.h:198
small capitals from c petite p
Definition: afcover.h:72
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no script
Definition: afscript.h:271
FT_Face face
Definition: cffdrivr.c:659
char * buffer_end
Definition: cwebboot.c:308
GR2_API float gr_slot_advance_X(const gr_slot *p, const gr_face *face, const gr_font *font)
Definition: gr_slot.cpp:90
GR2_API int gr_cinfo_before(const gr_char_info *p)
GR2_API float gr_slot_advance_Y(const gr_slot *p, const gr_face *face, const gr_font *font)
GR2_API int gr_slot_after(const gr_slot *p)
Definition: gr_slot.cpp:124
GR2_API float gr_seg_advance_X(const gr_segment *pSeg)
Definition: gr_segment.cpp:123
GR2_API unsigned short gr_slot_gid(const gr_slot *p)
Definition: gr_slot.cpp:69
GR2_API int gr_slot_can_insert_before(const gr_slot *p)
Definition: gr_slot.cpp:143
GR2_API int gr_slot_original(const gr_slot *p)
Definition: gr_slot.cpp:150
GR2_API const gr_slot * gr_slot_attached_to(const gr_slot *p)
Definition: gr_slot.cpp:48
GR2_API float gr_slot_origin_Y(const gr_slot *p)
Definition: gr_slot.cpp:83
gr_bidirtl
Definition: Segment.h:169
@ gr_rtl
Underlying paragraph direction is RTL.
Definition: Segment.h:171
@ gr_nomirror
Disable auto mirroring for rtl text.
Definition: Segment.h:177
@ gr_nobidi
Definition: Segment.h:175
gr_break_weight
Definition: Segment.h:37
@ gr_breakWord
Definition: Segment.h:41
@ gr_breakBeforeWord
Definition: Segment.h:47
@ gr_breakBeforeWhitespace
Definition: Segment.h:46
@ gr_breakIntra
Definition: Segment.h:42
@ gr_breakLetter
Definition: Segment.h:43
@ gr_breakNone
Definition: Segment.h:38
@ gr_breakWhitespace
Definition: Segment.h:40
@ gr_breakBeforeClip
Definition: Segment.h:50
@ gr_breakClip
Definition: Segment.h:44
@ gr_breakBeforeLetter
Definition: Segment.h:49
@ gr_breakBeforeIntra
Definition: Segment.h:48
GR2_API unsigned int gr_cinfo_unicode_char(const gr_char_info *p)
gr_attrCode
Definition: Segment.h:63
@ gr_slatMax
not implemented
Definition: Segment.h:164
@ gr_slatShiftX
Amount to shift glyph by in x-direction design units.
Definition: Segment.h:105
@ gr_slatPosX
Final positioned position of this glyph relative to its parent in x-direction in pixels.
Definition: Segment.h:101
@ gr_slatSegSplit
SubSegment split point.
Definition: Segment.h:125
@ gr_slatSeqClass
Definition: Segment.h:153
@ gr_slatColMargin
Collision margin.
Definition: Segment.h:145
@ gr_slatColMarginWt
Margin cost weight.
Definition: Segment.h:147
@ gr_slatAttWithX
Where on this glyph should align with the attachment point on the parent glyph in the x-direction.
Definition: Segment.h:81
@ gr_slatAttX
This slot attaches to its parent at the given design units in the x direction.
Definition: Segment.h:71
@ gr_slatUserDefnV1
attribute user1
Definition: Segment.h:109
@ gr_slatMeasureEol
not implemented
Definition: Segment.h:113
@ gr_slatAttWithXOff
Adjustment to gr_slatWithGpt in x-direction (not implemented)
Definition: Segment.h:87
@ gr_slatAdvY
adjusted glyph advance in y direction (usually 0) in design units
Definition: Segment.h:67
@ gr_slatColShiftx
Collision shift x.
Definition: Segment.h:141
@ gr_slatWithGpt
Which glyph point on this glyph should align with the attachment point on the parent glyph (not imple...
Definition: Segment.h:85
@ gr_slatJWidth
Amount this slot mush shrink or stretch in design units.
Definition: Segment.h:123
@ gr_slatColLimitblx
Collision constraint rectangle left (bl.x)
Definition: Segment.h:133
@ gr_slatSeqBelowXlim
Definition: Segment.h:158
@ gr_slatCompRef
Ligature component reference (not implemented)
Definition: Segment.h:95
@ gr_slatColExclOffy
Definition: Segment.h:151
@ gr_slatColLimitbly
Collision constraint rectangle lower (bl.y)
Definition: Segment.h:135
@ gr_slatJWeight
Justification weight for this glyph (not implemented)
Definition: Segment.h:121
@ gr_slatColExclOffx
Definition: Segment.h:150
@ gr_slatInsert
Whether insertion is allowed before this glyph.
Definition: Segment.h:99
@ gr_slatJStep
Granularity by which this slot can stretch or shrink (not implemented)
Definition: Segment.h:119
@ gr_slatSeqProxClass
Definition: Segment.h:154
@ gr_slatMeasureSol
not implemented
Definition: Segment.h:111
@ gr_slatAttGpt
This slot attaches to its parent at the given glyph point (not implemented)
Definition: Segment.h:75
@ gr_slatAttXOff
x-direction adjustment from the given glyph point (not implemented)
Definition: Segment.h:77
@ gr_slatJStretch
Amount this slot can stretch (not implemented)
Definition: Segment.h:115
@ gr_slatColFlags
Collision flags.
Definition: Segment.h:131
@ gr_slatColLimittrx
Collision constraint rectangle right (tr.x)
Definition: Segment.h:137
@ gr_slatNoEffect
not implemented
Definition: Segment.h:166
@ gr_slatSeqOrder
Definition: Segment.h:155
@ gr_slatAttYOff
y-direction adjustment from the given glyph point (not implemented)
Definition: Segment.h:79
@ gr_slatBidiLevel
Bidi level.
Definition: Segment.h:129
@ gr_slatAttWithY
Where on this glyph should align with the attachment point on the parent glyph in the y-direction.
Definition: Segment.h:83
@ gr_slatPosY
Final positioned position of this glyph relative to its parent in y-direction in pixels.
Definition: Segment.h:103
@ gr_slatShiftY
Amount to shift glyph by in y-direction design units.
Definition: Segment.h:107
@ gr_slatJShrink
Amount this slot can shrink (not implemented)
Definition: Segment.h:117
@ gr_slatColLimittry
Collision constraint rectangle upper (tr.y)
Definition: Segment.h:139
@ gr_slatAttTo
returns 0. Deprecated.
Definition: Segment.h:69
@ gr_slatUserDefn
User defined attribute, see subattr for user attr number.
Definition: Segment.h:127
@ gr_slatAdvX
adjusted glyph advance in x direction in design units
Definition: Segment.h:65
@ gr_slatBreak
Line break breakweight for this glyph.
Definition: Segment.h:93
@ gr_slatSeqValignWt
Definition: Segment.h:161
@ gr_slatAttLevel
Attach at given nesting level (not implemented)
Definition: Segment.h:91
@ gr_slatAttWithYOff
Adjustment to gr_slatWithGpt in y-direction (not implemented)
Definition: Segment.h:89
@ gr_slatSeqBelowWt
Definition: Segment.h:159
@ gr_slatDir
bidi directionality of this glyph (not implemented)
Definition: Segment.h:97
@ gr_slatSeqAboveWt
Definition: Segment.h:157
@ gr_slatColExclGlyph
Definition: Segment.h:149
@ gr_slatColShifty
Collision shift y.
Definition: Segment.h:143
@ gr_slatSeqValignHt
Definition: Segment.h:160
@ gr_slatAttY
This slot attaches to its parent at the given design units in the y direction.
Definition: Segment.h:73
@ gr_slatSeqAboveXoff
Definition: Segment.h:156
GR2_API const gr_slot * gr_slot_prev_in_segment(const gr_slot *p)
Definition: gr_slot.cpp:42
GR2_API const gr_slot * gr_slot_next_in_segment(const gr_slot *p)
Definition: gr_slot.cpp:36
GR2_API int gr_slot_before(const gr_slot *p)
Definition: gr_slot.cpp:117
GR2_API const gr_slot * gr_seg_first_slot(gr_segment *pSeg)
Definition: gr_segment.cpp:156
GR2_API size_t gr_cinfo_base(const gr_char_info *p)
GR2_API float gr_seg_advance_Y(const gr_segment *pSeg)
Definition: gr_segment.cpp:130
GR2_API float gr_slot_origin_X(const gr_slot *p)
Definition: gr_slot.cpp:76
GR2_API const gr_slot * gr_slot_first_attachment(const gr_slot *p)
Definition: gr_slot.cpp:55
GR2_API const gr_slot * gr_seg_last_slot(gr_segment *pSeg)
Definition: gr_segment.cpp:162
GR2_API float gr_seg_justify(gr_segment *pSeg, const gr_slot *pStart, const gr_font *pFont, double width, enum gr_justFlags flags, const gr_slot *pFirst, const gr_slot *pLast)
Definition: gr_segment.cpp:168
GR2_API int gr_cinfo_break_weight(const gr_char_info *p)
GR2_API unsigned int gr_seg_n_cinfo(const gr_segment *pSeg)
Definition: gr_segment.cpp:137
GR2_API const gr_char_info * gr_seg_cinfo(const gr_segment *pSeg, unsigned int index)
Definition: gr_segment.cpp:144
GR2_API void gr_slot_linebreak_before(gr_slot *p)
Definition: gr_slot.cpp:156
GR2_API int gr_cinfo_after(const gr_char_info *p)
GR2_API unsigned int gr_seg_n_slots(const gr_segment *pSeg)
Definition: gr_segment.cpp:150
GR2_API const gr_slot * gr_slot_next_sibling_attachment(const gr_slot *p)
Definition: gr_slot.cpp:62
GR2_API gr_segment * gr_make_seg(const gr_font *font, const gr_face *face, gr_uint32 script, const gr_feature_val *pFeats, enum gr_encform enc, const void *pStart, size_t nChars, int dir)
Definition: gr_segment.cpp:103
GR2_API int gr_slot_attr(const gr_slot *p, const gr_segment *pSeg, enum gr_attrCode index, gr_uint8 subindex)
Definition: gr_slot.cpp:136
gr_justFlags
Definition: Segment.h:53
@ gr_justEndInline
Indicates that the end of the slot list is not at the end of a line.
Definition: Segment.h:59
@ gr_justStartInline
Indicates that the start of the slot list is not at the start of a line.
Definition: Segment.h:57
@ gr_justCompleteLine
Indicates that this segment is a complete line.
Definition: Segment.h:55
GR2_API size_t gr_count_unicode_characters(enum gr_encform enc, const void *buffer_begin, const void *buffer_end, const void **pError)
Definition: gr_segment.cpp:89
GR2_API unsigned int gr_slot_index(const gr_slot *p)
Definition: gr_slot.cpp:130
GR2_API void gr_seg_destroy(gr_segment *p)
Definition: gr_segment.cpp:117
gr_encform
Definition: Types.h:39
unsigned int gr_uint32
Definition: Types.h:36
unsigned char gr_uint8
Definition: Types.h:31
#define GR2_API
Definition: Types.h:77
#define dir
#define flags
Definition: pbmfont.h:11
Definition: Face.h:225
Definition: Font.h:90
Definition: Slot.h:170
Definition: mendex.h:20