~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xlibi18n/utf8Wrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 * documentation for any purpose is hereby granted without fee, provided that
34
34
 * the above copyright notice appear in all copies and that both that
35
35
 * copyright notice and this permission notice appear in supporting
36
 
 * documentation, and that the name of Open Software Foundation 
 
36
 * documentation, and that the name of Open Software Foundation
37
37
 * not be used in advertising or publicity pertaining to distribution of the
38
38
 * software without specific, written prior permission.  Open Software
39
39
 * Foundation makes no representations about the suitability of this
43
43
 * OPEN SOFTWARE FOUNDATION DISCLAIMS ALL WARRANTIES WITH REGARD TO
44
44
 * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
45
45
 * FITNESS, IN NO EVENT SHALL OPEN SOFTWARE FOUNDATIONN BE
46
 
 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
 
46
 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
47
47
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
48
48
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
49
49
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
50
 
 * 
51
 
 *               M. Collins             OSF  
52
 
 */                             
 
50
 *
 
51
 *               M. Collins             OSF
 
52
 */
53
53
/*
54
54
 * Copyright 2000 by Bruno Haible
55
55
 *
144
144
                                                  (char *)text, text_len);
145
145
}
146
146
 
147
 
int 
 
147
int
148
148
Xutf8TextEscapement(
149
149
    XFontSet        font_set,
150
150
    _Xconst char   *text,
181
181
    XRectangle     *max_logical_extents)
182
182
{
183
183
    return (*font_set->methods->utf8_extents_per_char)
184
 
             (font_set, (char *)text, text_len, 
 
184
             (font_set, (char *)text, text_len,
185
185
              ink_extents_buffer, logical_extents_buffer,
186
186
              buffer_size, num_chars, max_ink_extents, max_logical_extents);
187
187
}