- Timestamp:
- 2013-01-15T22:49:23+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/html-to-expeditee/trunk/src/perllib/ExpediteeFrameIO.pm
r26727 r26728 87 87 my $css_font_size = $css_attr->{'font-size'}; 88 88 $exp_font_size = CssStyleToExpAttr::convert_font_size($css_font_size); 89 90 print STDERR "CSS Font Size is defined: ".$css_font_size."\n"; 91 print STDERR "Equivalent expeditee font size: ".$exp_font_size."\n"; 89 92 90 } 93 91 94 92 if(defined $css_attr->{'font-family'}){ 95 93 my $obtain_font_family = $css_attr->{'font-family'}; 96 print STDERR "Font family attribute found: ".$obtain_font_family."\n";97 94 my $new_exp_font_family = CssStyleToExpAttr::convert_font_family($obtain_font_family); 98 95 … … 102 99 } 103 100 104 if(defined $css_attr->{'font-face'}){ 105 print STDERR "Font face attribute found: ".$css_attr->{'font-face'}."\n"; 106 107 #now need to call a method from CssStyleToExpAttr.pm to extract the matching 108 #font symbol 109 #s - 101 if(defined $css_attr->{'font-style'}){ 102 print STDERR "Font style attribute found: ".$css_attr->{'font-style'}."\n"; 110 103 } 111 104 112 105 if(defined $css_attr->{'font-weight'}){ 113 106 print STDERR "Font weight attribute found: ".$css_attr->{'font-weight'}."\n"; 107 108 my $css_font_face = $css_attr->{'font-weight'}; 109 $exp_font_face = CssStyleToExpAttr::convert_font_face($css_font_face); 114 110 } 115 111 116 # if (defined $css_attr->{'font-face'}) {117 # $font = conver_font_face($css_attr->{'font-face'});118 # }119 120 112 $exp_attr->{'f'} = $exp_font_family.$exp_font_face.$exp_font_size; 121 122 print STDERR "**** final converted Expeditee font: ".$exp_attr->{'f'}; 113 print STDERR "exp attribute obtained: ".$exp_attr->{'f'}." ****\n"; 123 114 124 115 # background color … … 581 572 #don't want to add font information to non-text items! 582 573 my $deleted = delete $attr->{'f'}; 583 584 print STDERR "**** DELETED: $deleted \n";585 574 586 575 $self->addRect($xl,$yt,$xr,$yb,$attr); … … 617 606 my $y = $html_node->{'yt'}; 618 607 my $w = $html_node->{'xr'} - $x +1; 619 620 print STDERR "**** CHECKING STYLE NODE: ".$html_node->{'style'}."\n"; 608 621 609 my $attr = convertStyleToAttr($html_node->{'style'}); 622 623 #DEBUGGING624 if(defined $attr->{'f'}){625 print STDERR "***** Checking text attributes:".$attr->{'f'}."\n";626 print STDERR "****************************************\n";627 }628 610 629 611 # fudge factor for now (based on default font size used)
Note:
See TracChangeset
for help on using the changeset viewer.