@@ -198,10 +198,6 @@ impl XeTeXLayoutEngineBase {
198
198
199
199
#[ no_mangle]
200
200
pub unsafe extern "C" fn deleteLayoutEngine ( this : XeTeXLayoutEngine ) {
201
- eprintln ! ( "deleteLayoutEngine({:p})" , this) ;
202
- eprintln ! ( "Font: {:p}" , & * ( * this) . font) ;
203
- eprintln ! ( "Features: {:p}" , & * ( * this) . features) ;
204
- eprintln ! ( "Shapers: {:p}" , & * ( * this) . shaper_list) ;
205
201
let _ = Box :: from_raw ( this) ;
206
202
}
207
203
@@ -331,7 +327,6 @@ impl XeTeXLayoutEngineBase {
331
327
engine : XeTeXLayoutEngine ,
332
328
req_first : libc:: c_int ,
333
329
) -> libc:: c_int {
334
- eprintln ! ( "getFontCharRange" ) ;
335
330
if req_first != 0 {
336
331
( * engine) . font ( ) . get_first_char_code ( ) as libc:: c_int
337
332
} else {
@@ -344,15 +339,13 @@ impl XeTeXLayoutEngineBase {
344
339
engine : XeTeXLayoutEngine ,
345
340
glyph_name : * const libc:: c_char ,
346
341
) -> libc:: c_int {
347
- eprintln ! ( "mapGlyphToIndex" ) ;
348
342
( * engine)
349
343
. font ( )
350
344
. map_glyph_to_index ( CStr :: from_ptr ( glyph_name) ) as libc:: c_int
351
345
}
352
346
353
347
#[ no_mangle]
354
348
pub unsafe extern "C" fn usingGraphite ( engine : XeTeXLayoutEngine ) -> bool {
355
- eprintln ! ( "usingGraphite" ) ;
356
349
match & ( * engine) . shaper {
357
350
Some ( shaper) => shaper. to_bytes ( ) == b"graphite2" ,
358
351
None => false ,
@@ -386,7 +379,6 @@ impl XeTeXLayoutEngineBase {
386
379
max : i32 ,
387
380
rtl : bool ,
388
381
) -> libc:: c_int {
389
- eprintln ! ( "layoutChars" ) ;
390
382
let chars = slice:: from_raw_parts ( chars, max as usize ) ;
391
383
let engine = & mut * engine;
392
384
@@ -536,7 +528,6 @@ pub unsafe extern "C" fn getFontFilename(
536
528
engine : XeTeXLayoutEngine ,
537
529
index : * mut u32 ,
538
530
) -> * const libc:: c_char {
539
- eprintln ! ( "getFontFilename" ) ;
540
531
( * engine)
541
532
. font ( )
542
533
. get_filename ( & mut * index)
@@ -546,13 +537,11 @@ pub unsafe extern "C" fn getFontFilename(
546
537
547
538
#[ no_mangle]
548
539
pub unsafe extern "C" fn freeFontFilename ( filename : * const libc:: c_char ) {
549
- eprintln ! ( "freeFontFilename" ) ;
550
540
let _ = CString :: from_raw ( filename. cast_mut ( ) ) ;
551
541
}
552
542
553
543
#[ no_mangle]
554
544
pub unsafe extern "C" fn getGlyphs ( engine : XeTeXLayoutEngine , glyphs : * mut u32 ) {
555
- eprintln ! ( "getGlyphs" ) ;
556
545
let hb_glyphs = ( * engine) . hb_buffer . get_glyph_info ( ) ;
557
546
558
547
for ( idx, glyph) in hb_glyphs. iter ( ) . enumerate ( ) {
@@ -562,7 +551,6 @@ pub unsafe extern "C" fn getGlyphs(engine: XeTeXLayoutEngine, glyphs: *mut u32)
562
551
563
552
#[ no_mangle]
564
553
pub unsafe extern "C" fn getGlyphAdvances ( engine : XeTeXLayoutEngine , advances : * mut f32 ) {
565
- eprintln ! ( "getGlyphAdvances" ) ;
566
554
let engine = & * engine;
567
555
let hb_positions = engine. hb_buffer . get_glyph_position ( ) ;
568
556
@@ -579,7 +567,6 @@ pub unsafe extern "C" fn getGlyphAdvances(engine: XeTeXLayoutEngine, advances: *
579
567
580
568
#[ no_mangle]
581
569
pub unsafe extern "C" fn getGlyphPositions ( engine : XeTeXLayoutEngine , positions : * mut FloatPoint ) {
582
- eprintln ! ( "getGlyphPositions" ) ;
583
570
let engine = & mut * engine;
584
571
let hb_positions = engine. hb_buffer . get_glyph_position ( ) ;
585
572
@@ -681,7 +668,6 @@ pub unsafe extern "C" fn getGraphiteFeatureSettingCode(
681
668
feature_id : u32 ,
682
669
index : u32 ,
683
670
) -> u32 {
684
- eprintln ! ( "getGraphiteFeatureSettingCode" ) ;
685
671
get_graphite_feature_setting_code ( & * engine, feature_id, index) . unwrap_or ( 0 )
686
672
}
687
673
@@ -707,7 +693,6 @@ pub unsafe extern "C" fn getGraphiteFeatureDefaultSetting(
707
693
engine : XeTeXLayoutEngine ,
708
694
feature_id : u32 ,
709
695
) -> u32 {
710
- eprintln ! ( "getGraphiteFeatureDefaultSetting" ) ;
711
696
get_graphite_feature_default_setting ( & * engine, feature_id) . unwrap_or ( 0 )
712
697
}
713
698
@@ -727,7 +712,6 @@ pub unsafe extern "C" fn getGraphiteFeatureLabel(
727
712
engine : XeTeXLayoutEngine ,
728
713
feature_id : u32 ,
729
714
) -> * const libc:: c_char {
730
- eprintln ! ( "getGraphiteFeatureLabel" ) ;
731
715
match get_graphite_feature_label ( & * engine, feature_id) {
732
716
Some ( label) => label. into_raw ( ) . cast ( ) ,
733
717
None => ptr:: null_mut ( ) ,
@@ -758,7 +742,6 @@ pub unsafe extern "C" fn getGraphiteFeatureSettingLabel(
758
742
feature_id : u32 ,
759
743
setting_id : u32 ,
760
744
) -> * const libc:: c_char {
761
- eprintln ! ( "getGraphiteFeatureSettingLabel" ) ;
762
745
match get_graphite_feature_setting_label ( & * engine, feature_id, setting_id) {
763
746
Some ( label) => label. into_raw ( ) . cast ( ) ,
764
747
None => ptr:: null ( ) ,
@@ -811,7 +794,6 @@ pub unsafe extern "C" fn findGraphiteFeature(
811
794
f : * mut hb:: Tag ,
812
795
v : * mut libc:: c_int ,
813
796
) -> bool {
814
- eprintln ! ( "findGraphiteFeature" ) ;
815
797
let len = e. byte_offset_from ( s) . unsigned_abs ( ) ;
816
798
let str = slice:: from_raw_parts ( s. cast ( ) , len) ;
817
799
find_graphite_feature ( & * engine, str, & mut * f, & mut * v)
@@ -902,7 +884,6 @@ pub unsafe extern "C" fn initGraphiteBreaking(
902
884
txt_ptr : * const u16 ,
903
885
txt_len : libc:: c_uint ,
904
886
) -> bool {
905
- eprintln ! ( "initGraphiteBreaking" ) ;
906
887
let engine = & * engine;
907
888
let hb_font = engine. font ( ) . get_hb_font ( ) ;
908
889
let hb_face = hb_font. get_face ( ) ;
@@ -952,7 +933,6 @@ pub unsafe extern "C" fn initGraphiteBreaking(
952
933
953
934
#[ no_mangle]
954
935
pub unsafe extern "C" fn findNextGraphiteBreak ( ) -> libc:: c_int {
955
- eprintln ! ( "findNextGraphiteBreak" ) ;
956
936
let Some ( gr_seg) = GR_SEGMENT . take ( ) else {
957
937
return -1 ;
958
938
} ;
0 commit comments