mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
using font flags to recognize the symbol and serif fonts; using the encoding instead of predefined MacRoman in TrueType fonts
This commit is contained in:
parent
cf00831a00
commit
a84fa13189
2 changed files with 7 additions and 53 deletions
|
@ -557,7 +557,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
(fontObj.bold ? 'bold' : 'normal');
|
||||
|
||||
var italic = fontObj.italic ? 'italic' : 'normal';
|
||||
var serif = fontObj.serif ? 'serif' : 'sans-serif';
|
||||
var serif = fontObj.isSerifFont ? 'serif' : 'sans-serif';
|
||||
var typeface = '"' + name + '", ' + serif;
|
||||
var rule = italic + ' ' + bold + ' ' + size + 'px ' + typeface;
|
||||
this.ctx.font = rule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue