Overview
Comment: | In the previous check-in, a better value for font-size is "initial". |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1562bd171ab868db152cffc7c0c2aca9 |
User & Date: | drh 2024-07-24 13:50:26 |
Context
2024-07-31
| ||
12:19 | PIC/Pikchr differences doc updates suggested in forum post 8c99961f32aded60. (check-in: 3b1d05b1ec user: stephan tags: trunk) | |
2024-07-24
| ||
13:50 | In the previous check-in, a better value for font-size is "initial". (check-in: 1562bd171a user: drh tags: trunk) | |
12:05 | Add "style='font-size:100%'" to the <svg> element to work around an issue in Safari. Forum post 8c9e9aa984. (check-in: 67d1cab26b user: drh tags: trunk) | |
Changes
Changes to pikchr.c.
︙ | ︙ | |||
7212 7213 7214 7215 7216 7217 7218 | p->bbox.ne.x += margin + pik_value(p,"rightmargin",11,0); p->bbox.ne.y += margin + pik_value(p,"topmargin",9,0); p->bbox.sw.x -= margin + pik_value(p,"leftmargin",10,0); p->bbox.sw.y -= margin + pik_value(p,"bottommargin",12,0); /* Output the SVG */ pik_append(p, "<svg xmlns='http://www.w3.org/2000/svg'" | | | 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 | p->bbox.ne.x += margin + pik_value(p,"rightmargin",11,0); p->bbox.ne.y += margin + pik_value(p,"topmargin",9,0); p->bbox.sw.x -= margin + pik_value(p,"leftmargin",10,0); p->bbox.sw.y -= margin + pik_value(p,"bottommargin",12,0); /* Output the SVG */ pik_append(p, "<svg xmlns='http://www.w3.org/2000/svg'" " style='font-size:initial;'",-1); if( p->zClass ){ pik_append(p, " class=\"", -1); pik_append(p, p->zClass, -1); pik_append(p, "\"", 1); } w = p->bbox.ne.x - p->bbox.sw.x; h = p->bbox.ne.y - p->bbox.sw.y; |
︙ | ︙ |
Changes to pikchr.y.
︙ | ︙ | |||
4581 4582 4583 4584 4585 4586 4587 | p->bbox.ne.x += margin + pik_value(p,"rightmargin",11,0); p->bbox.ne.y += margin + pik_value(p,"topmargin",9,0); p->bbox.sw.x -= margin + pik_value(p,"leftmargin",10,0); p->bbox.sw.y -= margin + pik_value(p,"bottommargin",12,0); /* Output the SVG */ pik_append(p, "<svg xmlns='http://www.w3.org/2000/svg'" | | | 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 | p->bbox.ne.x += margin + pik_value(p,"rightmargin",11,0); p->bbox.ne.y += margin + pik_value(p,"topmargin",9,0); p->bbox.sw.x -= margin + pik_value(p,"leftmargin",10,0); p->bbox.sw.y -= margin + pik_value(p,"bottommargin",12,0); /* Output the SVG */ pik_append(p, "<svg xmlns='http://www.w3.org/2000/svg'" " style='font-size:initial;'",-1); if( p->zClass ){ pik_append(p, " class=\"", -1); pik_append(p, p->zClass, -1); pik_append(p, "\"", 1); } w = p->bbox.ne.x - p->bbox.sw.x; h = p->bbox.ne.y - p->bbox.sw.y; |
︙ | ︙ |