PDF: Add text support with a font framework (font embedding to come).
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 11 Nov 2010 21:37:00 +0000 (21:37 +0000)
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 11 Nov 2010 21:37:00 +0000 (21:37 +0000)
commit28be72b63e457c680c192a34fb9f58e1c693363f
tree4c092ef6116c3cf8a9b08d05d02762b7969f9288
parent8c1d88dcfb978835779b6b5c5e7d1cbb78b6ca4d
PDF: Add text support with a font framework (font embedding to come).

Supports fakeBold, underline, strikethrough, mode (fill, stroke, both), size, skew, alignment (left, center, right).
Missing is drawFontOnPath and font lookup and embedding.
Changed SkPDFString to support how it is used from drawText methods.
Moved compile assert into SkTypes.
Moved constants and utility function used to support fakeBold, underline, and strikethrough into higher level locations.

Review URL: http://codereview.appspot.com/2946041

git-svn-id: http://skia.googlecode.com/svn/trunk@624 2bbb7eff-a529-9590-31e7-b0007b416f81
18 files changed:
include/core/SkPaint.h
include/core/SkScalar.h
include/core/SkTypes.h
include/pdf/SkPDFDevice.h
include/pdf/SkPDFFont.h [new file with mode: 0644]
include/pdf/SkPDFTypes.h
include/utils/SkTextFormatParams.h [new file with mode: 0644]
src/core/Makefile.am
src/core/SkDraw.cpp
src/core/SkPaint.cpp
src/core/SkScalar.cpp [new file with mode: 0644]
src/core/core_files.mk
src/pdf/SkPDFDevice.cpp
src/pdf/SkPDFFont.cpp [new file with mode: 0644]
src/pdf/SkPDFGraphicState.cpp
src/pdf/SkPDFTypes.cpp
src/pdf/pdf_files.mk
src/ports/SkThread_win.cpp