Browse Source

Lower two common warnings to info.

Brendan Dahl 12 years ago
parent
commit
15a9ab34d3
  1. 4
      src/canvas.js
  2. 2
      src/evaluator.js

4
src/canvas.js

@ -16,7 +16,7 @@
*/ */
/* globals ColorSpace, DeviceCmykCS, DeviceGrayCS, DeviceRgbCS, error, /* globals ColorSpace, DeviceCmykCS, DeviceGrayCS, DeviceRgbCS, error,
FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageData, isArray, isNum, FONT_IDENTITY_MATRIX, IDENTITY_MATRIX, ImageData, isArray, isNum,
isString, Pattern, TilingPattern, TODO, Util, warn, assert */ isString, Pattern, TilingPattern, TODO, Util, warn, assert, info */
'use strict'; 'use strict';
@ -1401,7 +1401,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
// - remove background color: // - remove background color:
// colorNew = color - alphaNew *colorBackdrop /(1 - alphaNew) // colorNew = color - alphaNew *colorBackdrop /(1 - alphaNew)
if (!group.isolated) { if (!group.isolated) {
TODO('Support non-isolated groups.'); info('TODO: Support non-isolated groups.');
} }
// TODO knockout - supposedly possible with the clever use of compositing // TODO knockout - supposedly possible with the clever use of compositing

2
src/evaluator.js

@ -1341,7 +1341,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var fontNameStr = fontName && fontName.name; var fontNameStr = fontName && fontName.name;
var baseFontStr = baseFont && baseFont.name; var baseFontStr = baseFont && baseFont.name;
if (fontNameStr !== baseFontStr) { if (fontNameStr !== baseFontStr) {
warn('The FontDescriptor\'s FontName is "' + fontNameStr + info('The FontDescriptor\'s FontName is "' + fontNameStr +
'" but should be the same as the Font\'s BaseFont "' + '" but should be the same as the Font\'s BaseFont "' +
baseFontStr + '"'); baseFontStr + '"');
} }

Loading…
Cancel
Save