mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Fix pattern-filled text
This commit is contained in:
parent
3e34eb31d9
commit
06d083b04b
5 changed files with 30 additions and 13 deletions
|
@ -586,7 +586,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
var glyphs = font.charsToGlyphs(chars);
|
||||
var isAddToPathSet = !!(state.textRenderingMode &
|
||||
TextRenderingMode.ADD_TO_PATH_FLAG);
|
||||
if (font.data && (isAddToPathSet || this.options.disableFontFace)) {
|
||||
if (font.data && (isAddToPathSet || this.options.disableFontFace ||
|
||||
state.fillColorSpace.name === 'Pattern')) {
|
||||
var buildPath = (fontChar) => {
|
||||
if (!font.renderer.hasBuiltPath(fontChar)) {
|
||||
var path = font.renderer.getPathJs(fontChar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue