From 292ec4e296a3d49055954aa74b0a6afb6759cafd Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Mon, 30 Sep 2024 09:55:33 +0200 Subject: [PATCH] Build with warning fixes --- build/jsroot.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build/jsroot.js b/build/jsroot.js index 6e5428c9c..93c7d6354 100644 --- a/build/jsroot.js +++ b/build/jsroot.js @@ -9269,8 +9269,8 @@ function convertDate(dt) { } const kArial = 'Arial', kTimes = 'Times New Roman', kCourier = 'Courier New', kVerdana = 'Verdana', kSymbol = 'RootSymbol', kWingdings = 'Wingdings', -// average width taken from symbols.html, counted only for letters and digits -root_fonts = [null, // index 0 not exists + // average width taken from symbols.html, counted only for letters and digits + root_fonts = [null, // index 0 not exists { n: kTimes, s: 'italic', aw: 0.5314 }, { n: kTimes, w: 'bold', aw: 0.5809 }, { n: kTimes, s: 'italic', w: 'bold', aw: 0.5540 }, @@ -9289,10 +9289,9 @@ root_fonts = [null, // index 0 not exists { n: kVerdana, aw: 0.5664 }, { n: kVerdana, s: 'italic', aw: 0.5495 }, { n: kVerdana, w: 'bold', aw: 0.5748 }, - { n: kVerdana, s: 'italic', w: 'bold', aw: 0.5578 }]; - - -const gFontFiles = {}; + { n: kVerdana, s: 'italic', w: 'bold', aw: 0.5578 }], + // list of loaded fonts including handling of multiple simultaneous requests + gFontFiles = {}; /** @summary Read font file from some pre-configured locations * @return {Promise} with base64 code of the font