Quelle cairo-win32-font.c
Sprache: C
|
|
/* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2005 Red Hat, Inc
*
* This library is free software; you *Copyright ©2005RedHat, Inc
*modify itjava.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 2
by the
("" java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 66
*PublicLicense Version 1.1 (the "MPL"). If you do not alter this
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 69
MPL .
*
* You should have received a copy of the java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 30
* in the file the License. mayobtainac ofthe at
*Foundation,,51 Street,Suite 500,java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 30
Original the * You should have received a cop java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 69
thefileMPL-.java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
contents License mayobtain *
* Version#java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 30
* compliance #"-scaled-ont--."
*http:/ww..orgMPL
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
* the case CAIRO_ANTIALIAS_SUBPIXEL:
*
* OriginalCode s the - (logfont- (_have_cleartype_qualityjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
b;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* ->scaled_scaled_hfont =face_hfont;
*/
#include "cairoint -java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 71
#f-unscaled_hfont=NULL
#include "cairo-arrayjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [33, 25) out of bounds for length 53
oantialias )java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
#include"--privateh"
#include "cairo-scaled-font-ubsets-rivate..h"
#include <wchar.h>
#define CMAP_TAGstatus* * own java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 72
/**
* SECTION *it * wasexactly w java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
* @Title _java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 11
iption Font ould .
* @See_Also:java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 11
*
* The Microsoft Windows font backend is primarily used to render text on
* Microsoft Windows java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
if (tatus
gotoFAIL;
* if color font java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
**/
/**
returnif (status)
*
* Defined java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
* Since: 1.8
**/
constif_java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
typedefjava.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 0
;
LOGFONTW logfont;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/* We do drawing and metrics computation in a "logical space" which
* is imilar(java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 0
* of the *font_outjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*/
double logical_scale )
/* The size we should actually request the font at from Windows; differs,"%sn" F,"etWorldTransform")
logical_scale it isquantizedfor
transformations
*/
double logical_size;java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
/* Transformations from device <=> logical space
*/
cairo_matrix_t_cairo_matrix_to_win32_xform (caled_fontfprintf (tderr,":n _FUNCTION__ ")java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
cairo_matrix_t ;
/* We special case combinations of 90-degree-rotations, scales and java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
* flips ..return java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*/
cairo_bool_t
cairo_bool_t if (!ModifyWorldTransfo
if (!scaled_-scaled_hfont java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 74
cairo_bool_t;
double x_scale;
double y_scale;
/* The size of the design unit of the fontlfWidth = 0;error ();
*/
int em_square;
;
HFONTjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
cairo_bool_tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
cairo_bool_t delete_scaled_hfont;
r_java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 76
unsigned long type1_notdef_index **java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
} cairo_win32_scaled_font_t;
static cairo_status_t
_java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
staticcairo_status_t LOGFONTWs-java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
_airo_win32_scaled_font_t scaled_fontjava.lang.StringIndexOutOfBoundsException: Range [84, 85) out of bounds for length 84
*java.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 21
_java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 23
cairo_status_t
_if (!scaled_font->scaled_hfont) {
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
#define NEARLY_ZERO(d) (fabs(d) < (1. / 65536returncairo_error if(java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 34
static
_java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 12
{
static DWORD hdc_tls_index;
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
CAIRO_MUTEX_LOCK
if (!hdc_tls_index) {
staticcairo_status_t
assert (hdc_tls_indexreturn_cairo_error
}
CAIRO_MUTEX_UNLOCK (_cairo_win32_font_dc_mutex);
}
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 38
if (!hdc) {
hdc )
if (!hdc) {
fprintf}
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 17
}
if if OUTLINETEXTMETRIC (cairo_win32_scaled_font_t *scaled_font,
fprintf (stderr, "%sunsignedint otm_size;
DeleteDC (hdc) _hfont;
return java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
(tm_size);
if (!TlsSetValue(hdc_tls_index, java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return NULL;
}
}
r;
}
cairo_status_t
_ ifjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [22, 6) out of bounds for length 36
{
cairo_status_t return_cairo_error (java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
i(d_font-em_square tmotmEMSquarejava.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
scaled_font-cairo_status_t status;
scaled_font->x_scale = sc->xx;
scaled_font->swap_x = (scjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Range [0, 2) out of bounds for length 0
= _cairo_mallocotm_sizejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
scaled_fonti(tatus)
} else return status
!NEARLY_ZERO
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [21, 12) out of bounds for length 31
scaled_font->swap_x = (sc->yx < 0)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 27
scaled_font->fprintf ( %s:%sn" otmcaled_font->java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
scaled_fontjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
scaled_font}
}
scaled_font->scaled_font->em_square }
scaled_font->swap_x = scaled_fontjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
if (scaled_font->java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
scaled_font>}
logfont.=-java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
caled_fontlfEscapement 0java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
scaled_font>r CAIRO_STATUS_SUCCESS;
cal_size WIN32_FONT_LOGICAL_SCALE *
_cairo_lround (scaled_font->y_scale);
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
/* The font matrix has x and y "scale" components which we extract and
* use java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
*/
otm = _cairo_malloc(tm_size;
sc->xx, sc->yx, sc->xy, _cairo_error (CAIRO_STATUS_WIN32_GDI_ERROR)java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
if (!scaled_font->preserve_axes) {
status =_cairo_matrix_compute_basis_scale_factors (&scaled_font->logical_to_device }
-
*hfont_outairo_status_t status;
if (if( GetOutlineTextMetrics hdcCAIRO_STATUS_SUCCESSjava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
return
d_font>logical_size
_cairo_lround (cairo_win32_scaled_font_select_unscaled_font
scaled_font-fprintf (stderr, "%s:%s\n _,GetOutlineTextMetrics";
WIN32_FONT_LOGICAL_SCALE * scaled_font->y_scale;
}
_cale java.lang.StringIndexOutOfBoundsException: Range [23, 15) out of bounds for length 15
1.0 / java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
1.0 / scaled_font-java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 0
scaled_font->java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (tatus)
if(old_hfont){
fprintf(java.lang.StringIndexOutOfBoundsException: Range [4, 23) out of bounds for length 5
}
static
_have_cleartype_quality }
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
OSVERSIONINFO logfont.lfHeight = -scaled_fonem_square (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 17
version_info
if logfontS(,java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
_java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
eturn return CAjava.lang.StringIndexOutOfBoundsException: Range [31, 10) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aled_fojava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
vdwMajorVersion =5
win32_scaled_fwin32_scaled_font
}
BYTE
cairo_win32_get_system_text_quality (voidreturn java.lang.StringIndexOutOfBoundsException: Range [28, 28) out of bounds for length 0
{
BOOL font_smoothing;
UINT smoothing_type;
_java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
_is_bitmap(airo_scaled_font_t **java.lang.StringIndexOutOfBoundsException: Range [0, 68) out of bounds for length 32
}
if (win32_scaled_fontd_font_t java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 1
if ( java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
airo_win32_scaled_font_select_unscaled
0
static
returnjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (smoothing_type == FE_FONTSMOOTHINGCLEARTYPE
return ;
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [53, 50) out of bounds for length 107
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/* If face_hfont is non-%NULL then font_matrix must be a simple scale by some
* factor S, i java.lang.StringIndexOutOfBoundsException: Range [28, 28) out of bounds for length 0
* logfont->lfWidth cairo_utf8_to_utf16 (java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
* java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 15
* logfont.
*/
static rstatus;
_win32_scaled_font_create (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ifsjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
return
java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
const (ace_name -;
const cairo_font_options_t *options,
cairo_scaled_font_t logfont.lfHeight = 0; /* filled in later */
{
HDC
cairo_win32_scaled_font_t statusface_name;
cairo_matrix_t scale;
cairo_status_t logfont.lfOrientation=l..java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 47
hdc = _java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
if(dc = NULL
return _cairo_errorcase CAIRO_FONT_WEIGHT_NORMAL:
f = _cairo_calloc (sizeof(cairo_win32_scaled_font_t));
if (f == NULL)
return _ logfontlfWeight=FW_NORMAL;
f
/* We don't have any control over the hinting style or subpixelS(dc,Mf *java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
* java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 12
* the 'quality'.
* java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 33
* XXX: The java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
lfItalic = TRUE;
*/
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 66
f- :
else {
switch (optionsjava.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 26
O_ANTIALIAS_NONE TALIC:
java.lang.StringIndexOutOfBoundsException: Range [15, 5) out of bounds for length 41
break;
CAIRO_ANTIALIAS_GRAY
/* The docsjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
case * interpretation java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
f->quality = ANTIALIASED_QUALITY;*_ (*scaled_fontjava.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
logfont=java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
case java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
_java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
>quality ;
else
f->quality =java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 70
break;
case CAIRO_ANTIALIAS_DEFAULT.=java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
ASSERT_NOT_REACHED;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
f->em_square = static logfont.airo_win32_scaled_font_fini( abstract_font)
f->scaled_hfont = NULL{
f->unscaled_hfont *font_face java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
f->java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
logfont->java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
options>if(caled_font == NULL)
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
* own --- because cairo_font_face_t
guarantee it nexactly way
* _DeleteObject (scaled_font->scaled_hfont
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 11
f->scaled_hfont ijava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
/* don't delete the hfont if we're using the one passed in to us */
-java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 26
DeleteObjectscaled_font-unscaled_hfont)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
status
if (
goto long
java.lang.StringIndexOutOfBoundsException: Range [36, 10) out of bounds for length 58
font_matrix, ctm, options,
&_java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 1
if (status)
goto FAIL;
java.lang.StringIndexOutOfBoundsException: Range [21, 11) out of bounds for length 23
if (tatus) {{
_cairo_scaled_font_fini (&f->base) cairo_status_t status;
goto HDC hdc = &face_name_len)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
font_out = &f->base;
return status;
FAIL:
freeassert (!!ULLjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
status = cairwin32_scaled_font_select_font (-base,;
}
static cairo_status_t
wont_set_world_transform(cairo_win32_scaled_font_t *scaled_font,
HDC hdc)
{
XFORM xform;
_cairo_matrix_to_win32_xform (&scaled_font->java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 10
if 0] = ucs4;
intf java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 10
unicode0] (ifGjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 75
}
return CAIRO_STATUS_SUCCESS;
}
static cairo_status_t
_t_set_identity_transform (HDC hdc)
{
if (! if (GetGlyphIndicesW(hdc, unicode, 1, }
fprintf (stderr, "%s:%s\n", _java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cairo_errorjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
}
static cairo_status_t
_win32_scaled_font_get_scaled_hfont ( ogfont
HFONT *hfont_out)
{
if ->scaled_hfont) {
LOGFONTW java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
logfontfHeight java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
logfont.lfWidth case AIRO_FONT_WEIGHT_NORMAL:
logfont.lfEscapement cairo_status_t
logfont.cairo_font_extents_t_java.lang.StringIndexOutOfBoundsException: Range [38, 36) out of bounds for length 77
logfontjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
scaled_font->scaled_hfont = CreateFontIndirectW (&HDC hdc;cairo_font_extents_t extents
if java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
fprintf (a ( =NULL)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
return ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
*hfont_out = scaled_font->scaled_hfont;
return
}
static status
_ switch( /* For 90-degree rojava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 61
HDC default:
f hdc metrics))
{
fscaled_font-java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
OUTLINETEXTMETRIC *;
unsigned int otm_sizejava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
scaled_hfontjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
LOGFONTW logfont;
cairo_status_t status;
status = _win32_scaled_font_get_scaled_hfont
&scaled_hfont
if (status)
if lfStrikeOut = FALSE;
fprintf (stderr, "%s:%s\n", __FUNCTION__, ()
return _cairo_error ( *interpretation localelocale- but it's
}
= xtents..max_x_advance metricss,_FUNCTION__, eTextMetrics")java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
if (!otm_size) {
fprintf*/
return _cairo_error (CAIRO_STATUS_WIN32_GDI_ERROR java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
c(;
if (otm == NULL)
return java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 52
fprintfstderr,"%:%java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [61, 18) out of bounds for length 63
}
scaled_font->java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12
free java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
etTextMetrics h,cairo_win32_scaled_font_finivoid*bstract_font)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
logfont.cairo_win32_scaled_font_t */* For all other transformations, we
extents java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [21, 8) out of bounds for length 26
logfontlfOrientation 0*transformed font are nexplicably andwant to
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [14, 12) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
i(ujava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
;
returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
_ (*java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 61
HDC )
{
cairo_status_t status;
;
HFONT old_hfont = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
wjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23
atus
return status butformostcommon java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Range [26, 13) out of bounds for length 42
scaled_font-> =java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0
%s\",(handlingjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 65
return _cairo_error (CAIRO_STATUS_WIN32_GDI_ERROR);
}
status{
)if (i (etFontDatahjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
SelectObject0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
[0] ucs4;
}
S(,;
returnCAIRO_STATUS_SUCCESS
}
cairo_bool_t
_ * asScript nd
{
cairo_win32_scaled_font_t *win32_scaled_fontjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 58
win32_scaled_fontscaled_font->is_type1=java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
cairo_bool_t
_cairo_win32_scaled_font_set_metrics{
{
cairo_win32_scaled_font_t *win32_scaled_font cjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
(GetFontData
return TEXTMETRIC metrics{0}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
_cairo_win32_scaled_font_done_unscaled_font
{
if(metrics&scaled_fontbase,&
}
static cairo_status_t
_ font_extents;
c width =java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
{
LOGFONTW static const MAT2 (*
uint16_t *face_name;
int face_name_len;
cairo_status_t status;
status cairo_utf8_to_utf16 java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 0
=_java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
if (status)
return status;
=_java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
LF_FACESIZE -;
(,face_name,e.=tmDescent >java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 66
GetCharWidth32,,0
ce_name;
logfont.lfHeight = 0; /* filled in later */
l.lfWidth = /
logfont.lfEscapement = 0; /* filled in later */
lfOrientation (scaled_font>;
switch (toy_face->weighti status)*of The resultsfromreturn java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
case extents.y_bearing = scaled_font-.ctm. *( themjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 15
default:
logfont/* If we aren't rotating / skewing the axes, then we get the metrics
;
return statusjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
extents.y_advanc =java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 23
;
}
tmDescent/ >;
ase
default:
=*t in java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 59
break}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
case CAIRO_FONT_SLANT_OBLIQUEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
logfont. * handl _TrueType ()
needsto java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
}
logfont.lfUnderline = FALSE GGO_METRICS | GGO_GLYPH_INDEX,
logfont.lfStrikeOut = FALSE;
/* The docs for LOGFONT discourage using this, since the
* interpretation is locale-specific, but lse java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
* would be a better alternative.
*/
logfont.lfCharSet= java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
however,antialiasing(with ClearType meansthat actual java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 87
logfont. * needs to be*needs be fThisistoType1 f such
logfont.lfQuality = DEFAULT_QUALITY; /* filled in later */
logfont.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE;
*font_face = java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 5
return java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
}
static void
_java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 6
{
cairo_win32_scaled_font_tfont &but glyphjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 88
if (scaled_font == NULL)
return;
* wea of slop"toleft ofthe /
* and two two pixels toe.java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 74
if (scaled_font->unscaled_hfont)
(caled_font-java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 5
}
static unsigned extents=3java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
_java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
extents hdc, Njava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 63
{
extents.widmetricsmBlackBoxX
wchar_t unicode[2];
WORD;
HDC hdc ex_advance =
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hdc = _extents.y_advance = metrics.gmCellIncX / java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 64
if (status java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 45
0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2
if (GetGlyphIndicesWif (>java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
fprintf java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
ifsjava.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 33
}
cairo_win32_scaled_font_done_fontjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
INT widthextents.
}
java.lang.StringIndexOutOfBoundsException: Range [69, 55) out of bounds for length 82
_ {
{
cairo_status_tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
font
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
DC
hdc = _get_global_font_dc ();
G java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
if(idth java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
/* For 90-degree rotations (including 0), we get the metrics
injava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 66
*/
(&scaled_font>java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 19
if (extents.x_b 0;
return status;
! y_bearing .. IN32_FONT_LOGICAL_SCALE*scaled_font->x_scalejava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 75
fprintf (stderr "%s:%n, e. extentswidth;
status extents. 0java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
(&scaled_font->base);
if(status)
return status;
extents.ascent = * from the GDI in devic and ofont.
extents.descent = metrics.tmDescent / scaled_font->logical_scale;
extents.height =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
axCharWidth/*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
extents.max_y_advance .= . >em_square;
} } )
/* For all other transformations, we use the design metrics
* of the font. The GDI results from GetTextMetrics java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
* ransformed font are * back the capability to the scaled
* avoid them.
*/
status = _java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 0
if (status)
return status;
* tatic
_cairo_win32_scaled_font_done_unscaled_font (&scaled_font- java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
extents.ascent = (double)metrics.tmAscent / intnum_glyphs
extents.descent = (double)metrics.tmDescent / airo_box_t * *however,java.lang.StringIndexOutOfBoundsException: Range [1, 26) out of bounds for length 22
extents static const
extents.max_x_advance = (double)ifneedsjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 59
extents.max_y_advance = 0;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
* for exampl otherjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9
/* Need to determine if this is a Type 1 font for the special
* handling in _text_to_glyphs.int i
*Type1 fonts do not have a "cmap" table ( * and two pixels to the right (as tests show some intnum_glyphsjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
However GetFontData( illx)
{
* the file. This is to java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 27
* as"Script"and"Modern".TheTMPF_TRUETYPE test is redundant
* but improves performance for the most common fonts.
*/
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 25
if (!HDC hdc;
&0, metrics;
{
if (ajava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
{
E;
}
}
return _cairo_scaled_font_set_metrics = -metrics extents.x_bearing = metrics.gjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 74
}
static =widthmetrics.java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 64
height metrics.gmBlackBoxY /scaled_font->y_scale;
status = status = cairo_win32_scaled_font_select_fontscaled_font->x_scale;
{
staticconstMAT2 matrix ={{ 1}, {00},{,0 i status)
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
cairo_status_t status;
cairo_text_extents_t
HDC hdc;
hdc = _get_global_font_dc ();
sserthdc !
) {
/* GetGlyphOutline will not work. Assume that the glyph does not extend outside the font box. */
bbox-p1y=>java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27
INT width = 0;
UINTcharIndex
cairo_scaled_font_extents (&scaled_font->base, &font_extents}
s&,NULL,matrix;
if (status)
return status;
if (!GetCharWidth32(hdc,cairo_win32_scaled_font_t *scaled_font;
fprintf (stderr, "%s:%s\n" status = _cairo_win32_scaled_font_select_unscaled_font(i = 0|x1> x metrics..java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
status
width = 0;
}
if (status)
if (i == ilast_xjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
0;
extents.y_bearing = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
extents.width = width / (WIN32_FONT_LOGICAL_SCALE * java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 49
. =-by fnt_extents.cent +font_extentsdescent caled_font-s;
extents.x_advancejava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
nt_done_unscaled_font &caled_font-basejava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
} else if (scaled_font->preserve_axes && scaled_fontextents hdc)
/* If we aren't rotating / skewing the axes, then we get the metrics
cairo_array_init stateg sizeof WCHAR));
*/
status = (&-b airo_array_initextentsy_advance=(g caled_font>;
if (status)
return status;
if (GetGlyphOutlineW (hdc, _cairo_scaled_glyph_index _cairo_scaled_glyph_set_metrics (scaled_glyph,
GGO_METRICS |GGO_GLYPH_INDEX,
&metrics, 0, NULL, &matrix) == GDI_ERROR) java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
s0, (GLYPHMETRICS);
} else {
if (metrics.gmBlackBoxX > 0 && scaled_font return ;
}
* however, bbox->p1.y = _cairo_fixed_from_int (y1);
* needs to be rendered may "bleed" into the adjacent pixels/* Not currently used code, but may be useful in the future if we add
*WCHAR * elements;
*for java.lang.StringIndexOutOfBoundsException: Range [21, 7) out of bounds for length 22
* we add a pixel status = _cairo_array_append (&state->dx, &dx);
java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 59
*/
cairojava.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 43
metrics.gmBlackBoxX += 3;
}
}
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 12
if (java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
xtents_java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 76
extents.y_bearing = metrics.gmptGlyphOrigin.x / java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 23
extents fprintf stderrcjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 21
extents.java.lang.StringIndexOutOfBoundsException: Range [13, 0) out of bounds for length 0
extents.x_advance = metrics.gmCellIncY / scaled_font->x_scale;
extents.y_advance = metrics.gmCellIncX / scaled_font->y_scale;
} int;
extents static constmatrixcjava.lang.StringIndexOutOfBoundsException: Range [33, 25) out of bounds for length 42
extents.y_bearing = - metrics.gmptGlyphOrigin
cjava.lang.StringIndexOutOfBoundsException: Range [5, 0) out of bounds for length 0
extents.height = metrics.gmBlackBoxY / scaled_font->y_scale;
extents.x_advance = metrics.gmCellIncX / scaled_font->x_scale;
.gmCellIncY /scaled_font->scalejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
ifHDC )
extents._bearing =(-xtents.x_bearing java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 1
extents.x_advance = - extents.x_advance;
{
if (scaled_font->swap_y java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
xtents.y_bearing =_(&tateg sizeof C);
extents..y_advance - extents.y_advance;
}
} else cairo_array_init glyph_index= index;
/* For all other transformations, we use the design metricsjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 60
* of the font.
*/
tatus
if (status)
returnjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 22
if (GetGlyphOutlineW (hdc, _cairo_scaled_glyph_index (scaled_glyph
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 39
&metrics, 0, NULL, &matrix) == GDI_ERROR) {
memset(&,0i (java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
}
_win32_scaled_font_done_unscaled_font
.x_bearing=(ouble)metrics..gmptGlyphOrigin..x /scaled_font-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
extentsfor( == ;i< i++) {
extents.width = (double
status=_cairo_array_append state-dx,&dx)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
extents.advance =java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 15
extents.y_advance = (double)metrics.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 15
}
__cairo_array_index(tate>,0)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
&scaled_font->base,
&extents);
dx_elements cjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/* Not currently used code, but may be useful in the future if we add
* -start_x,state-;
* actual
* ont-java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 13
*/
#if 0
staticcairo_status_t
_x1 = x + metrics
conststate-java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 23
int num_glyphs,
cairo_box_t *bbox)
{
staticconst matrix
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
int x1 = 0, x2 = 0, y1 = 0, y2 = 0;
if (num_glyphs > 0) {
HDC hdc;
metrics;
cairo_status_t status;
int i;
hdc = glyphsrgmptGlyphOrigin. (int)metrics.gmBlackBoxX;
{
status = cairo_status_t status
if (statusif( =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
.mptGlyphOrigin.y+njava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for (i = 0;
intu longjava.lang.StringIndexOutOfBoundsException: Range [48, 34) out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
GetGlyphOutlineWjava.lang.StringIndexOutOfBoundsException: Range [26, 11) out of bounds for length 35
_draw_glyphs_on_surface
if (i == 0 || x1 > y;
x1 = x + metrics.gmptGlyphOrigin.x;
if (i == 0 || y1 *scaled_font,
.gmptGlyphOrigin..;
if (i =y=_()
x2 = x + i logical_x,logical_y;
( = |y2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
cairo_win32_scaled_font_done_font (&scaled_font->base);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
bbox>p1xl s_tstatus ;
bbox->p1.y = _cairo_fixed_from_int inti;
bbox->p2.x = _cairo_fixed_from_int (x2);
bbox->2y=_cairo_fixed_from_int y2java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
return java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
}
#endif
typedef struct {
cairo_win32_scaled_font_t *scaled_font;
HDC
cairo_array_t glyphs int java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
fstate)
int start_x;
int last_x;
goto F java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
} cairo_glyph_state_t;
static void
_start_glyphs (cairo_glyph_state_t *state,
-start_x = SetTextAlign tatic java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
HDC )
{
state->hdc =logical_x-s-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
state->java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 37
_cairo_array_init (&state->glyphs, sizeof (WCHAR if statusjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
_cairo_array_init (s x -x_offset,glyphs[.
}
static cairo_status_t
_flush_glyphsgoto ;
{
cairo_status_t status;
int dx = 0;
WCHAR * elements;
int * dx_elements;
status = _cairo_array_append}else {
if(cairo_arra(-,sizeof (int);
return status;
elements = _cairo_array_index (&state->glyphs, 0) status =status2;
dx_elements = _cairo_array_index (&state-}
f ( if (!ExtTextOutW
state->start_x, state->last_y,
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 7
NULL,
elements,
state
return status;
fprintf (stderr, "java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
returnjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
_cairo_array_truncate (&state->glyphs, 0);
return tatus
}
atic
_add_glyph (cairo_glyph_state_t *state,
cairo_scaled_glyph_info_t}
double device_x,
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 1
ijava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 29
double user_y = device_y;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
lements = java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 26
airo_matrix_transform_point
logical_x = _cairo_lround (java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 35
logical_y = _cairo_lround (user_y);
java.lang.StringIndexOutOfBoundsException: Range [7, 4) out of bounds for length 41
int x;
if (logical_y != state->last_y) {
if (!java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (status)
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
state->start_x = logical_x;
} else {
_;
tatus= _cairo_array_append (state->, return CAIRO_INT_STATUS_UNSUPPORTED;
if (status)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
} else {
state->start_x logical_x;
elements,
status java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 43
tatelast_y = COLORREF ,
java.lang.StringIndexOutOfBoundsException: Range [32, 10) out of bounds for length 64
if (status)
return status;
return CAIRO_STATUS_SUCCESS;
}
static cairo_status_t
__finish_glyphs *,
{
cairo_status_t int num_glyphs)int java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 5
status = _flush_glyphs (state);
(&>java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 0
_cairo_array_fini (&state->dx);
return status unsigned long tag,
}
static cairo_status_t
_draw_glyphs_on_surface (cairo_win32_surface_t !java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 70
cairo_win32_scaled_font_tunsigned long *length)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
)
int y_offset,
const cairo_glyph_t *HDC ;
int num_glyphs)
return
cairo_glyph_state_t state;
cairo_status_t status, status2;
int i;
if (!SaveDC (surface->dc)) {
fprintf (stderr, "%s:%s\n", __FUNCTION__, "SaveDC");
_ AIRO_STATUS_WIN32_GDI_ERROR
}
status = cairo_win32_scaled_font_select_font FAIL1
if ( status = cjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
goto FAIL1;
SetTextColor ouble device_x,
SetTextAlign (surface->dc, TA_BASELINE | TA_LEFT);
SetBkMode (surface->dc, TRANSPARENT);
)
for (i = 0; i < num_glyphs; i++) {
status tatus;|(buffer &ret != l)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
[i].y -y_offset double user_x =java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
goto else
}
FAIL2:
t)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
if (status == CAIRO_STATUS_SUCCESS)
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
FAIL1:
RestoreDC (surface->dc, -1java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 25
returnstatus;
}
static cairo_int_status_t
_cairo_win32_scaled_font_glyph_init ( glyphs[i]x- x_offset, uint32_t*java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
*scaled_glyph
cairo_scaled_glyph_info_t info,
ccairo_color_t *java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 53
{
scaled_font_t *caled_font java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 27
airo_status_t if (state->glyphs.numstateglyphs.. 0java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
if (java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
status = _cairo_win32_scaled_font_init_glyph_metrics (scaled_font, java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 12
if)
return status;
}
if (info & java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 33
caled_glyph->color_glyph = FALSE;
if(status ==CAIRO_STATUS_SUCCESS if (java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
return tatus=status2;
}
if (info & CAIRO_SCALED_GLYPH_INFO_SURFACE) {
status = _cairo_win32_scaled_font_init_glyph_surface
if (status)
return java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
if(infod s cairo_error(;
status = _cairo_win32_scaled_font_init_glyph_path (scaled_font, scaled_glyph) goto exit1;
if (status)
return;
}
return CAIRO_STATUS_SUCCESS;
}
static cairo_int_status_t
_cairo_win32_scaled_font_load_truetype_table (void
long offset,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cairo_win32_scaled_font_glyph_init v
{
cairo_win32_scaled_font_t *scaled_font = abstract_font;
DChdcjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
cairo_status_t
DWORD ret;
hdc = _get_global_font_dc ();
assert (hdc != NULL java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
tag = (tag (i=;i < glyph_set
status = status _cairo_array_append (state{
if (status)
return status;
ret = if (status
=_cairo_status_t status;
status if(utf16== NULL {
else
*length =r return CAI) !java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 56
cairo_win32_scaled_font_done_font (&scaled_font->base}
return status;
}
static cairo_int_status_t
_cairo_win32_scaled_font_index_to_ucs4if (glyph_indices == NULL) {
unsigned _finish_glyphs (cairo_glyph_state_t sjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
uint32_t *ucs4)
{
cairo_win32_scaled_font_t
GLYPHSET *java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
=s).java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 47
WORD[]=0;
HDC hdc = }
int res;
unsignedif(java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
cairo_status_t status;
hdc= get_global_font_dc (status=_airo_error (CAIRO_STATUS_WIN32_GDI_ERROR;
assert (hdc != NULL);
status = cairo_win32_scaled_font_select_font (&scaled_font->base, hdc);
if (status)
turnstatus;
res = GetFontUnicodeRanges(hdc, NULL);
if (res == 0) {
fprintf (stderr, "%s:%s\n", __FUNCTION__, "GetFontUnicodeRanges");
status = _cairo_error (CAIRO_STATUS_WIN32_GDI_ERRORjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 12
}
glyph_set = _cairo_malloc if(status)
if (glyph_set == NULL) {
status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
return *java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 43
}
=GetFontUnicodeRanges(glyph_set);
if (resx_offset,
fprintf (stderr, "%s:%s\n"java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 6
(CAIRO_STATUS_WIN32_GDI_ERROR)java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
goto exit1;
}
*ucs4 = (uint32_t) -1;
for (i = 0; i < glyph_set->cRanges; i++) {
num_glyphs = glyph_set->ranges[i].cGlyphs;
utf16 = _cairo_malloc_ab (num_glyphs static cairo_int_status_t
if static cairo_int_status_t
status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
goto exit1;
}
glyph_indices = _cairo_malloc_ab (java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 30
if (glyph_indices == NULL) {
status =_cairo_error java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1
goto exit2;
}
int ijava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
utf16[j glyph_set-ranges[i].
utf16[j] = 0;
f ((hdcutf16, num_glyphs,glyph_indices )=GDI_ERROR){
fprintf (stderr, "%s:%s\n", __FUNCTION__, "GetGlyphIndices");
status = _cairo_error ( cairo_bool_t italic;
goto exit2;
}
for (j *is_synthetic = FALSE;
java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 59
*ucs4 = utf16[j];
goto exit2;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
}
free (glyph_indices);
glyph_indices = NULL;
free (utf16);
utf16 = NULL;
cairo_win32_scaled_font_t *=;
exit2:
free (glyph_indices);
free (return CAIRO_STATUS_SUCCESS
free (glyph_set);
Ojava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 15
return status;
}
static
_cairo_win32_scaled_font_is_synthetic
cairo_bool_t *is_synthetic)
{
SetTextColor
status;
intweight;
cairo_bool_t bold;
cairo_bool_t italic;
is_synthetic java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
status = _cairo_truetype_get_style (&scaled_font-> unsigned long glyph_index,
_start_glyphs (&state, scaled_font, surface unsigned *if ret =GDI_ERROR|| (java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
&java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [59, 4) out of bounds for length 59
/* If this doesn't work assume it is not synthetic to avoid
* unnecessary subsetting fallbacks. */
if (status != CAIRO_STATUS_SUCCESS)
return CAIRO_STATUS_SUCCESS;
if
/* Findpositionof. in ofglyph names
cairo_win32_scaled_font_done_font&->base)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
return CAIRO_STATUS_SUCCESS}
}
}
_ifgjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 51
airo_win32_scaled_font_index_to_ucs4,
int num_glyph_names,
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 42
unsigned long break;
{
32 java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
int i;
/* Windows puts .notdef at index 0 then numbers the remaining | |