Jonas Jenwald
3820946301
Fix (most) errors reported by the `no-multi-spaces` ESLint rule
...
http://eslint.org/docs/rules/no-multi-spaces
9 years ago
Tim van der Meij
5194e68134
Lint: correct code style violations
...
Manual observations and working with other linting tools found these.
9 years ago
Jonas Jenwald
b961e1d21b
Extract `CFFParser` from fonts.js (issue 6777)
9 years ago
Jonas Jenwald
17aaa125df
Keep track of the character to glyph mapping in font_renderer.js, to prevent errors when different characters point to the same glyph (issue 7101)
...
Fixes 7101.
9 years ago
Yury Delendik
2edf2792dc
Replaces literal {} created lookup tables with Object.create
9 years ago
Yury Delendik
1a9a665adf
Refactor Encodings
9 years ago
Yury Delendik
4ef20de429
Lazify GlyphsUnicode.
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
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
Collin Anderson
54e984c763
cleaned whitespace
10 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
fkaelberer
c978c026fa
clean up string conversion functions
11 years ago
Jonas Jenwald
75de115938
Fix coding style in src/core/font_renderer.js
11 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
Yury Delendik
0e133f0090
Drawing without fillText; refactoring ADD_TO_PATH
12 years ago