Ignore:
Timestamp:
2013-01-16T18:56:21+13:00 (11 years ago)
Author:
davidb
Message:

Can now correctly obtain colours and size of text when generating Expeditee frames. Also accounted for when the web browser being used is Firefox (FF uses "700" instead of the word "bold" for font-weight). The width of text items is also calculated and written to Expeditee. Parameters have also been provided so the user can decide whether they want the correct font information and text width used or to just use default values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/html-to-expeditee/trunk/src/perllib/cgiactions/HtmlToExpediteeAction.pm

    r26597 r26731  
    5050{
    5151    "generate-frame"     => { 'compulsory-args' => [ "fn", "json" ],
    52                   'optional-args'   => ["assoc"] },
     52                  'optional-args'   => ["assoc", "compute-font"] },
    5353};
    5454
     
    8080   
    8181    my $assoc = $self->{'assoc'};
    82 
     82   
     83    my $compute_font = $self->{'compute-font'};
     84    print STDERR "Wil send compute_font... $compute_font\n\n";
     85   
    8386    # no need to lock collection (??), the operation is read only
    8487
     
    9598    my $expeditee_frame_io = new ExpediteeFrameIO($output_dir);
    9699   
    97     $expeditee_frame_io->buildFrame($exp_frame_tree);
     100    $expeditee_frame_io->buildFrame($exp_frame_tree,$compute_font);
    98101
    99102    if ($expeditee_frame_io->saveFrame("$fn.exp",$assoc)) {
Note: See TracChangeset for help on using the changeset viewer.