- Timestamp:
- 2013-01-16T18:56:21+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/html-to-expeditee/trunk/src/perllib/CssStyleToExpAttr.pm
r26729 r26731 352 352 my $exp_font_size = undef; 353 353 354 355 354 if ($css_font_size =~ m/^(\d+(?:\.\d*))px$/) { 356 355 $exp_font_size = int($1); 357 } 356 }else{ 357 #FF rounds sizes, e.g. 16.13px will just be 16px. 358 my $end_index = length($css_font_size) - 2; 359 $exp_font_size = substr($css_font_size,0,$end_index); 360 } 358 361 359 362 return $exp_font_size; … … 365 368 my $exp_font_face = undef; 366 369 367 if(lc($css_font_face) eq "bold"){ 370 #Firefox uses '700' instead of 'bold' for font-weight. 371 if(lc($css_font_face) eq "bold" || $css_font_face eq "700"){ 368 372 $exp_font_face = "b"; 369 }elsif(lc($css_font_face) eq "italic"){ #for now - also need to take into account italic and italic bold.373 }elsif(lc($css_font_face) eq "italic"){ 370 374 $exp_font_face = "i"; 371 }elsif(lc($css_font_face) eq "bold-italic" ){375 }elsif(lc($css_font_face) eq "bold-italic" || $css_font_face eq "700-italic"){ 372 376 $exp_font_face = "p"; 373 377 }else{ 374 378 $exp_font_face = "r"; 375 379 } 376 380 377 381 return $exp_font_face; 378 382 }
Note:
See TracChangeset
for help on using the changeset viewer.