Jonas Jenwald
3820946301
Fix (most) errors reported by the no-multi-spaces
ESLint rule
...
http://eslint.org/docs/rules/no-multi-spaces
2016-12-12 20:35:51 +01:00
Tim van der Meij
5194e68134
Lint: correct code style violations
...
Manual observations and working with other linting tools found these.
2016-11-01 15:04:21 +01:00
Jonas Jenwald
b961e1d21b
Extract CFFParser
from fonts.js (issue 6777)
2016-04-01 22:32:39 +02:00
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.
2016-03-30 11:33:04 +02:00
Yury Delendik
2edf2792dc
Replaces literal {} created lookup tables with Object.create
2016-01-28 12:18:38 -06:00
Yury Delendik
1a9a665adf
Refactor Encodings
2016-01-28 11:32:59 -06:00
Yury Delendik
4ef20de429
Lazify GlyphsUnicode.
2016-01-28 11:32:59 -06:00
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
2015-12-15 13:24:39 -06:00
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: */
2015-11-14 07:32:18 +05:30
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.
2015-08-13 14:33:18 -07:00
Collin Anderson
54e984c763
cleaned whitespace
2015-02-17 11:07:37 -05:00
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
2014-04-15 17:10:23 +02:00
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
2014-04-11 00:41:08 +02:00
fkaelberer
c978c026fa
clean up string conversion functions
2014-03-27 13:01:43 +01:00
Jonas Jenwald
75de115938
Fix coding style in src/core/font_renderer.js
2014-03-22 20:49:47 +01:00
Brendan Dahl
bb2529de03
Move the creation of canvas path fonts to the worker.
2013-08-19 16:33:20 -07:00