Yury Delendik
a8e5912cb1
Moves shared/global to display/global
9 years ago
Yury Delendik
2edf2792dc
Replaces literal {} created lookup tables with Object.create
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
10 years ago
Jonas Jenwald
12068490ed
Remove the superfluous `PDFJS.disableFontFace = false;` statement at the top of font_loader.js (issue 6742)
...
Fixes 6742.
10 years ago
Jonas Jenwald
f0e4795302
Reset the `styleElement` when clearing out loaded fonts (bug 1232017)
...
*This is a follow-up to PR 6571.*
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071 .
10 years ago
Jonas Jenwald
e8e79029b1
Replace `font.bindDOM()` with `font.createFontFaceRule()` in the `FontLoader` for MOZCENTRAL specific code (PR 6571 follow-up)
...
This is a follow-up to PR 6571, and fixes font loading in the `MOZCENTRAL` version.
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1228603#c2 .
10 years ago
Yury Delendik
06c1904675
Refactors FontLoader to group fonts per document.
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Mike Skalnik
341c5e9d1f
[PATCH] Add fallback for font loading when eval disabled
...
In some cases, such as in use with a CSP header, constructing a function with a
string of javascript is not allowed. However, compiling the various commands
that need to be done on the canvas element is faster than interpreting them.
This patch changes the font renderer to instead emit commands that are compiled
by the font loader. If, during compilation, we receive an EvalError, we instead
interpret them.
10 years ago
Rob Wu
f9dd7318f7
fontLoadPromises -> fontsToLoad
...
fontsToLoad is always an empty array, Promise.all should wait for
fontLoadPromises instead of fontsToLoad.
10 years ago
Jonas Jenwald
d762cad420
Fix the node getinfo.js example
...
This broke in PR 5366.
10 years ago
Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Yury Delendik
8bec7ea8bd
Adds optional argument to FontFace contructor call.
11 years ago
Rob Wu
d0845df971
Use Font Loading API if available
...
http://dev.w3.org/csswg/css-font-loading/
11 years ago
Rob Wu
6a230af332
Rename FontFace to FontFaceObject
...
This name clashes with the FontFace constructor from the Font Loading CSS module:
http://dev.w3.org/csswg/css-font-loading/#font-face-constructor
11 years ago
pramodhkp
6d53fc4db7
Minor changes for api.js, font_loader.js and svg.js
11 years ago
fkaelberer
4ee35b0d46
Fix typo/unused argument in fontloader.js->spliceString()
11 years ago
fkaelberer
c978c026fa
clean up string conversion functions
11 years ago
Tim van der Meij
f1249bd49e
Making src/display/font_loader.js adhere to the style guide
11 years ago
Yury Delendik
e712c4136a
Cleaning up fonts when viewer is idle for some time
12 years ago
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago