|
|
|
|
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, * the specific language governi
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*the"java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
*#include mage
*Microsoftsystems
MPLor java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
SECTIONc-f
* in thefile*itle: Fonts
*Foundation*CAIRO_HAS_WIN32_FONT @ in32GDI java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
*@ee_Also #cairo_font_face_t
* @ee_Also:*
*
* The contents of this*
This used compile specific codejava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
**
**java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 2
* ase;
*java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 0
* the java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
* **similar to font space, except that it is scaled by a factor
*
* The Initial Developer of the Original Code is
* isquantized java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
*/
#/
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 82
#include "cairo-array-private.h"
# * othe(fontsize llowsforsub- .
#include "cairo-image-surface-private.h"
#include "cairo-pattern-private.h"
#include "cairo-scaled-font-subsets */
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
# * logical_scale because that take java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
/**
*transformations
**/
*
* ouble logical_scale;
* encode the *
*
* Note: Win32 GDI fontsjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
* if cairo_bool_t/
**/
/**
* CAIRO_HAS_WIN32_FONT:
.thatis transformations take the to the
available and without a flip)FONT java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
unsigned long type1_notdef_index;
*
*airo_boo swap_axes;
**/
onstcairo_scaled_font_backend_t _cairo_win32_scaled_font_backend;
typedef struct {
base;
flips ...that is transformations that take the axes to java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
BYTE quality;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* to space thatitis bya
**
* * ithout a scale_x,cale_y scalec.
*/
HFONTjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
/* The size we should actually request the font at from Windows; differsc swap_axes;
* ;
ransformations
*/
doublecairo_win32_scaled_font_t
/* Transformations from device <=> logical spacejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
/* We special case combinations of 90-degree-rotations, scales and
HFONTunscaled_hfont;
p is java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* 8 possibilities orientation ( rotation angleswith
java.lang.StringIndexOutOfBoundsException: Range [25, 5) out of bounds for length 70
*/
cairo_bool_t preserve_axes;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 19
doublec
/* The size of the design unit of the fontstatic DWORDhdc_tls_indexgccaled_fontjava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
*/
HDChdc;
HFONT java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
#define CAIRO_MUTEX_LOCK(cairo_win32_font_dc_mutex;
cairo_bool_t if!{
cairo_bool_tstatic
cairo_bool_t java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 26
cairo_bool_t has_type1_notdef_index;
unsigned
}3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
_cairo_win32_scaled_font_set_metrics (if(hdc_tls_index) {
static
_OF_INDEXES _cairo_win32_font_dc_mutex)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
if hdc_tls_indexTlsAlloc)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ajava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 84
hdc = =NULLjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
static cairo_status_t returnNULL;
_java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
fprintf ss F,""
dd )
static java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
_get_global_font_dcfprintf stderr " java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
hdc
(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
_java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
(!java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 0
!NEARLY_ZERO> java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(!)java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
!F;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
hdc = scaled_fontpreserve_axes=TRUE
!){
hdc = CreateCompatibleDCscaled_font- -s>;java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
fprintf ssjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 31
return NULL;
}
if (!SetGraphicsModecaled_font-F;
fprintf (stderr, "%s:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
eleteDCh)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
scaled_font-wap_y => ALSEjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
}
ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
DeleteDC scaled_font>wap_x)
;
}
}
> scaled_font->y_scale scx;
}
static cairo_status_t
compute_transform cairo_win32_scaled_font_t*scaled_font
cairo_matrix_t scaled_font>_ -;
{
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 26
_ZEROsc>xx) &&java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
scaled_font _ s-scalejava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 36
-> -* as charactervalues.
scaled_font }
scaled_font (scaled_font-preserve_axes
} ( x }
!NEARLY_ZERO f
java.lang.StringIndexOutOfBoundsException: Range [27, 12) out of bounds for length 35
status =_ ifscaled_font>wap_xjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
scaled_font> = s-yx 0_ > --scalejava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
scaled_font-y_scale sc->y
if (status
scaled_font-> scaled_font->logical_scale WIN32_FONT_LOGICAL_SCALE*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} else {
scaled_font>preserve_axes
-swap_x =caled_font>wap_y =scaled_font> =FALSE
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( &scaled_font- scaled_font-y_scale
TRUE; /* XXX: Handle vertical text */
if (java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
caled_font-logical_size =WIN32_FONT_LOGICAL_SCALE * asjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
_java.lang.StringIndexOutOfBoundsException: Range [51, 49) out of bounds for length 73
if(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/* The font matrix has x and y "scale" components which we extract and
* use asjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
*/
c )/java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
->x -yx statusjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
if java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 7) out of bounds for length 85
_java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 30
if
status
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
_cairo_lround if (!GetVersionEx (&version_info 1 ljava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 53
}
airo_matrix_scale(scaled_font>logical_to_deviceif()
1,
1.0 /
scaled_font->device_to_logical = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
status
if_ave_cleartype_qualityvoid
airo_matrix_init_identity (&scaled_font->device_to_logical);
OSVERSjava.lang.StringIndexOutOfBoundsException: Range [17, 0) out of bounds for length 0
}
staticjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{
}
version_infojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if return DEFAULT_QUALITYjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
a _java.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 68
cairo_win32_print_api_error v)
}
}
(version_infojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
}java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 28
BYTE
if (font_smoothingjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
font_smoothing
UINT java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
r
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
if (font_smoothing) {
_(){
all java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
smoothing_type)logfontjava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
static return DEFAULT_QUALI;
returnDEFAULT_QUALITY
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return const cairo_matrix_t * const,ctmmust _ java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
r return cairo_scaled_font_t *java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43
{
return DEFAULT_QUALITY;
}
cairo_win32_scaled_font_t fjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
/* If face_hfont is non-%NULL then font_matrix must be a simple scale by some/
* hdc java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* logfont.
*/
static return _cairo_errorjava.lang.StringIndexOutOfBoundsException: Range [44, 44) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
airo_errorC;
*
cairo_matrix_tfont_matrix
const
constcairo_font_options_toptions,
cairo_scaled_font_t **font_out)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 12
cairo_win32_scaled_font_t
*the'uality.
dc java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 6
hdc = _java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 21
if ( = NULL)
return _cairo_error (CAIRO_STATUS_NO_MEMORY) n java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
f =*XXXfi = NULL
{
return _cairo_error java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
e java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
*.usea
* the 'quality.
*
breakfjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
*eretheoptions.
*/
== *
(options>= )
-quality Cjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
else f> java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
cCAIRO_ANTIALIAS_SUBPI
casejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
casef> =0;
:
case CAIRO_ANTIALIAS_GOOD:
f->quality = ANTIALIASED_QUALITY;
break;
case f->quality java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
case CAIRO_ANTIALIAS_BEST
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
f- (> if)
else
=){
break;
case /* If face_hfont - else
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
}
reak
f->em_square = 0;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
f->java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
f- 'usingone java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 71
if (f-
( (,,ctmjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
-
/* If face_hfont is non-NULL, then we can use it to avoid creating our -java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
- constraints above
twas thethat
* _win32_scaled_font_get_scaled_hfont would create it.
*/
f->scaled_hfont = face_hfont;
(r:w it
/* don't delete the hfont if we're using the one passed in to us */*@See_Also*
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 2
status cjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
(
if (status)
statusjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
()
& fbase
s)
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
status = _java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 13
if(status{
_cairo_scaled_font_fini (&
goto }
}
*java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 25
**
FAIL:
free ( goto FAIL;
return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
static _/java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
_java.lang.StringIndexOutOfBoundsException: Range [41, 38) out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
XFORM xform;
_*by
f;
printf%%\_ Sjava.lang.StringIndexOutOfBoundsException: Range [69, 68) out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}_ (*fromthelogical_scale because it for orthogonal
return CAIRO_STATUS_SUCCESS;
*
static
_win32_scaled_font_set_identity_transform XFORM xform;
{
ifjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
fprintf s ss"_java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
}
return java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 5
} java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
static cairo_status_t
_ * and without a flip{
!odifyWorldTransformhdc NULL*java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
{
font>) java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 74
LOGFONTWcairo_bool_t swap_yjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
logfont
logfont.=0;_ CAIRO_STATUS_WIN32_GDI_ERROR
logfont. =0;
logfont.lfOrientation}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
HFONT scaled_hfont
caled_font> returnCAIRO_STATUS_SUCCESS
}
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
eturnwjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 76
HFONT *)
}
hfont_out
return (scaled_font>caled_hfont) {
}
static cairo_status_t
_static cairo_status_t LOGFONTWlogfont caled_font-;
cairo_win32_scaled_font_ ( *,
logfont scaled_glyph;
{
if ( logfont.lfWidth airo_status_t
OUTLINETEXTMETRIC *otm;
unsignedintientation =0
HFONT scaled_hfont;
LOGFONTW logfont;
airo_status_t status;
status win32_scaled_font_get_scaled_hfont
&scaled_font->scaled_hfont java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0
return (CAIRO_STATUS_WIN32_GDI_ERROR;
returnreturnjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
if
java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ifjava.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 23
hfont
}
m=_airo_malloc(java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
return _cairo_error ( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
fprintf static cairo_status_t java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
stderr%:,_ java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
return cairo_error(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 9
}
-java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 23
return
logfontjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
i s)java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
logfont.lfWidth NEARLY_ZERO
if (! G!java.lang.StringIndexOutOfBoundsException: Range [21, 12) out of bounds for length 31
logfont. fprintf %%\,_ java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 31
aled_fontqjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
scaled_font->java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
if(java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
*hfont_out = scaled_font- java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
eturn lfQuality java.lang.StringIndexOutOfBoundsException: Range [55, 53) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
static cairo_status_t
_java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [53, 51) out of bounds for length 85
{
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
HFONTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
status hdc" _ java.lang.StringIndexOutOfBoundsException: Range [78, 76) out of bounds for length 79
if
java.lang.StringIndexOutOfBoundsException: Range [23, 15) out of bounds for length 15
old_hfont = HFONT old_hfont = NULL>java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (!old_hfont) {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return _cairo_error (CAIRO_STATUS_WIN32_GDI_ERROR= java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
}
status
if ( logfont = scaledjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SelectObject(hdc (){
returnSelectObject( java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 31
hdcjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [31, 10) out of bounds for length 32
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cairo_bool_t
_ cairo_win32_scaled_font_t *win32_sc;
{
(version_info.dwMajorVersionjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
return
}
if (!Sysjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
tis_bitmap*java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 32
{
*}
_have_cleartype_quality
_java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
}
static voidjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
_/* implement the font backend interface java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
{
}
/* implement the font backend interface */java.lang.StringIndexOutOfBoundsException: Range [80, 78) out of bounds for length 107
static
_cairo_win32_font_face_create_for_toy java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
{
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
int & ;
cairo_status_t status;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
return java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
fjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 42
_-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [32, 25) out of bounds for length 43
logfont.lfFaceName[java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 1
face_name)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 17
illedinlater*
logfont.lfEscapement = 0; /* filled in later */
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
switch(oy_face-weight){
case * order in the
default:
logfont.lfWeight = FW_NORMAL
cairo_b
java.lang.StringIndexOutOfBoundsException: Range [5, 32) out of bounds for length 21
case {
break;
}
switch ( logfont.java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
. FALSE;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
casejava.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
{
break;
}
.=EFAULT_CHARSETjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/* The docs for LOGFONT discourage using this, since the ( (java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
*
would abetter alternative..
*/
logfont
logfontlfOutPrecision =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ion = CLIP_DEFAULT_PRECIS}
logfont.lfQuality = java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
_airo_win32_scaled_font_fini void*java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
font_facejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
return CAIRO_STATUS_SUCCESS
}
- java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
_cairo_win32_scaled_font_fini (void *guarantee was created i the same that
{
cairo_win32_scaled_font_t
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
return;
if (/
DeleteObjectDeleteObject (caled_font->unscaled_hfontfiro_status_t status;
if
(scaled_font-)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
c unsigned long
_status = _cairo_scaled_font_init (&f->base, font_face uint32_t ucs4)
uint32_t {
{
cairo_win32_scaled_font_t cairo_win32_scaled_font_t *java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 15
wchar_t unicode[];
WORD glyph_index;
HDCifs d;
java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 26
hdc*java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 25
assert (dc !;
_win32_scaled_font_select_font (scaled_font-> hdc)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
in32_scaled_f (cairo_win32_scaled_font_t *scaled_font,
r ;
[0 =free face_name etGlyphIndicesWhdc unicode,1,&lyph_index )= GDI_ERROR {
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
return java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
glyph_index = logfont.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(!scaled_fontjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 37
switch.fHeightjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
} case AIRO_FONT_WEIGHT_NORMAL:
staticcairo_status_t
_scaled_font_set_metricscairo_win32_scaled_font_t scaled_font)
{
cairo_status_t statusjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
TEXTMETRIC metrics = {0};
java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 25
hdcjava.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
if (staticjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
/* For 90-degree rotations (including 0), we get the metricstations (including 0 if (statusjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Gjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 39
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 65
if (!java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
%, G)
cjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 65
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (status)
return otm = _cairo_mallo otm_size)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
extents.ascent = metrics.tmAscent / scaled_font->java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 0
extents.descent = metrics.tmDescent logfont.lfPitchAndFamily = DEFAULT_PITCH | java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 15
*= free
.return _cairo_error (CAIRO_STATUS_WIN32_GDI_ERROR);
extents.max_y_advance = 0;
} else {
/* For all other transformations, we use the design metrics
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 58
* avoid them.
*/
status. scaled_font (java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
cnscaled_hfont
GetTextMetricsDeleteObject java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 9
_*hfont_out = scaled_font->unscaled_hfont
tsascent=()metrics.mAscent/ scaled_font->java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static cairo_status_t
_airo_win32_scaled_font_ucs4_to_index void *bstract_font,
extents.max_x_advance HDC HDChdc)
;
}
statusunicode[2;
/* Need to determine if this is a Type 1 font for the special butimproves performance for most commonjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
* n_ext_to_glyphs.UnlikeTrueType OpenType,
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
* if (statusif (status ( dc 0 )=GDI_ERROR &
* etMapMode hdc MM_TEXT)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
isdistinguishjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 32
""ajava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
forthe
*/
> java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
cairo_text_extejava.lang.StringIndexOutOfBoundsException: Range [32, 24) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
scaled_font-java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
}
return_ (scaled_font-base,e
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 1
cairo_win32_font_facjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 35
_NT width =0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
*scaled_glyph
{
java.lang.StringIndexOutOfBoundsException: Range [16, 4) out of bounds for length 74
GLYPHMETRICS metrics;
java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
cairo_text_extents_t java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 12
HDC hdc;
hdc ==_( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
assertdc!java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
if }
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
font_extents;
INT (java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
= sjava.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 63
status = java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
extents tmDescent/>java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
return extents.x_bearing0;
if(hdc java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 58
;
tatus=java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
=0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 56
f(java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
status;
. =0;
>base.ctm.y* avoid them.
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 4
* If we aren't rotating / skewing the axes, then we get the metrics
extents.x_advance = extents.java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 32
e =;
rjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
c java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
heGDI in device convert to font space.
*/
status java.lang.StringIndexOutOfBoundsException: Range [87, 88) out of bounds for length 87
ifstatus)
return status;
if (GetGlyphOutlineW (hdc, _ * Type1 fonts do not have a "cmap" table needstojava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 39
&metrics, Tojava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 84
memset (&metrics, 0, sizeof (GLYPHMETRICS/* The docs for LOGFONT discourage using this, since the
}else{
metrics. >0& However ()willretrieve a Type1 when
/* The bounding box reported by Windows supposedly contains the glyph's "black" area;lfCharSet = DEFAULT_CHARSET;
*that
*needs to rendered may the file Thisdistinguish from ontssuch
* clipping the when drawn by cjava.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 1
to the to updatejava.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 88
*we ajava.lang.StringIndexOutOfBoundsException: Range [19, 14) out of bounds for length 87
*twoto y_bearing=etrics.mptGlyphOriginx scaled_font->x_scale;
*/
extentsx_advance metrics.mCellIncYjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
metrics.gmBlackBoxX = 3;
}
}
cairo_win32_scaled_font_ucs4_to_indextData(hdc MAP_TAG, 0,ULL 0 = GDI_ERROR)&&
=.mBlackBoxX
extents.java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 23
extents.y_bearing = metrics.gmptGlyphOrigin}
e.. = }
extents.height = metrics.gmBlackBoxX cairo_status_t statusjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/ scaled_font>
java.lang.StringIndexOutOfBoundsException: Range [22, 12) out of bounds for length 67
} else {
java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
extentswidth =etrics.gmBlackBoxX /scaled_font->_scale;
extents. extents.java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
unicodejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ifscaled_font-swap_xjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 25
-java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 45
}
java.lang.StringIndexOutOfBoundsException: Range [16, 3) out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
e.advance _ (s-base ;
}
}else
/* For all other transformations, we use the design metrics
.
*/
status = _H
if
(tderr %:s ,
ifGetGlyphOutlineW (dc ( idth ;
GGO_METRICS | GGO_GLYPH_INDEX,
&metrics, 0, NULL, &matrix memset from theDIin , convertbacktof space
&java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 4
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
y_bearing
xtentsy_bearing= - width /(*>x_scale);
extents sjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 72
extents.height = (double if(}
extents.cairo_win32_scaled_font_done_fontjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
.extents etjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
}
_ extents.x_advance = (double)metric*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
()metricsgmCellIncY/scaled_font>em_squarejava.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
&extents);
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/* Not currently used code, but may be useful in the future if we add&)
*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bboxrather computing from java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
* font-space metrics.
*/
#if 0
tatic cairo_status_t
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
,
cjava.lang.StringIndexOutOfBoundsException: Range [29, 20) out of bounds for length 35
{
static
* java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 59
int
if (num_glyphs > 0) {
GLYPHMETRICS metrics;
java.lang.StringIndexOutOfBoundsException: Range [65, 11) out of bounds for length 65
;
hdc = _get_global_font_dc java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 67
assert (hdc != NULL);
status */
if (status)
* )
for (i java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
int x = _cairo_lround java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 68
int y = (&scaled_font>)java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
int x1 = 0, x2 = 0, = y java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
, java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
if (i == 0 || java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [30, 4) out of bounds for length 37
if (i == 0 || java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
y1=y- . extents.x_bearing = metrics.gmpt.x /scaled_font->_scale;
if ( == 0||x2<xjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
x2=tents = /scaled_font-x_scale;
if (i == 0 || y2 < eeight=.java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 65
{, , 0if(
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
bbox>. ->ap_y) {
bbox->p2.x extents._earing =(- extents.y_bearing - extents.height);
bbox->p2.y = _cairo_fixed_from_int (y2);
return}
}
#statu metrics,0, &atrix);
typedef struct {
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 43
ifi = 0 x1 x+metricsgmptGlyphOrigin.java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
airo_array_t glyphs;
cairo_array_t dx;
int ;
int ;
int last_y;
} extents.x_bearing =
staticvoid
_start_glyphs (cairo_glyph_state_t * ( x+.ptGlyphOrigin extents.height = scaled_font->base.ctm.yy =scaled_fontase.y* o. . >s;
cairo_win32_scaled_font_t *cairo_win32_scaled_fo(&caled_font->)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
hdc)
{
- ;
state->scaled_font = .width )metrics.gmBlackBoxX if (i == 0 || y2 < y - metrics.gmptGlyph.y +().gmBlackBoxY)
_ (tate-lyphs, )java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
cextents.y_advance )metricsjava.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static cairo_status_tjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 52
&; ,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 49
{
/* The boundingjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
intjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 89
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [21, 7) out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 51
ifjava.lang.StringIndexOutOfBoundsException: Range [14, 14) out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 5
e
java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 59
*
-java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 38
}
cairo_win32_HDC
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
e. -java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 76
dx_elements)) {
(java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 21
return _cairo_error (java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 16
}
_java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
_ &-d,
return CAIRO_STATUS_SUCCESS;
}
static cairo_status_t
_ ( *state
unsigned extents.y_advance = metrics scaled_fonty_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
HDChdc)
double extents._bearing e-java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 1
{){
(&-lyphs ()
=-.java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
WCHARglyph_index=;
int /* For all other transformations, we use the design metrics
*
c ajava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 22
logical_y =status= java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 26
memset (metrics, if s)
intjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 21
if. java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 35
status = s &tate )
if int x=_ extents.x_advance = (doubx java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 15
return status;
state->start_x =celements _&>lyphs,0;
} else {
java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19 | | |