Skip to content

Commit

Permalink
Build with PDF font fix
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Nov 28, 2024
1 parent b732d67 commit c60565f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '27/11/2024',
version_date = '28/11/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down Expand Up @@ -142405,7 +142405,13 @@ async function makePDF(svg, args) {
node.removeAttribute('dy');
});

restore_text.forEach(node => { node.innerHTML = node.$originalHTML; node.setAttribute('font-family', node.$originalFont); });
restore_text.forEach(node => {
node.innerHTML = node.$originalHTML;
if (node.$originalFont)
node.setAttribute('font-family', node.$originalFont);
else
node.removeAttribute('font-family');
});

const res = args?.as_buffer ? doc.output('arraybuffer') : doc.output('dataurlstring');
if (nodejs) {
Expand Down
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
1. Fix - handle `TPave` NDC position also when fInit is not set
1. Fix - correctly position title according to gStyle->GetTitleAlign()
1. Fix - correctly handle tooltip events for `TGraphPolar`
1. Fix - font corruption after PDF generation


## Changes in 7.8.0
Expand Down
2 changes: 1 addition & 1 deletion modules/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const version_id = 'dev',

/** @summary version date
* @desc Release date in format day/month/year like '14/04/2022' */
version_date = '27/11/2024',
version_date = '28/11/2024',

/** @summary version id and date
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
Expand Down

0 comments on commit c60565f

Please sign in to comment.