mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Long line fix
This commit is contained in:
parent
04e467793b
commit
1f532e6edb
1 changed files with 2 additions and 1 deletions
3
fonts.js
3
fonts.js
|
@ -441,7 +441,8 @@ var Font = (function Font() {
|
|||
if (!file) {
|
||||
// The file data is not specified. Trying to fix the font name
|
||||
// to be used with the canvas.font.
|
||||
var fontName = stdFontMap[name.replace('-', '_')] || name.replace('_', '-');
|
||||
var fontName = stdFontMap[name.replace('-', '_')] ||
|
||||
name.replace('_', '-');
|
||||
this.bold = (fontName.search(/bold/gi) != -1);
|
||||
this.italic = (fontName.search(/oblique/gi) != -1) ||
|
||||
(fontName.search(/italic/gi) != -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue