bugPSPP - Bugs: bug #63020, Invalid font name...

 
 

bug #63020: Invalid font name "SansSerif" in html output

Submitter:  Frans Houweling <fhouweling>
Submitted:  Mon 05 Sep 2022 01:23:22 PM UTC
   
 
Category:  Output Driver Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Jun 2023 05:09:46 PM UTC, comment #3: 

I applied commit e32bec11e6da ("html: Include generic font-family name "sans-serif" as a fallback.") as my attempt at fixing the problem.

Ben Pfaff <blp>
Group administrator
Sat 24 Jun 2023 08:47:13 AM UTC, comment #2: 

I don't know what the "correct" solution is, but if putting a hack in to change "Sans Serif" to "sans-serif" fixes a known problem then I don't see any reason not to do it.

John Darrington <jmd>
Group administrator
Mon 05 Sep 2022 05:19:35 PM UTC, comment #1: 

I'm not too sure what to do about this.  I can add a translation of "SansSerif" to "sans-serif", but font names have little compatibility across platforms beyond that.  Do you have any ideas?  Does anyone know what SPSS does here?

Ben Pfaff <blp>
Group administrator
Mon 05 Sep 2022 01:23:22 PM UTC, original submission:  

The font name "SansSerif" is copied verbatim from the table looks .stt file to the html style attributes and is ignored by browsers. Changing "SansSerif" to "sans-serif" in the .stt file solves the problem but breaks compatibility.
PDF output seems unaffected.

Frans Houweling <fhouweling>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by fhouweling (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-24 blp StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code