|
Add Truetype and Type 1 font embedding support
Sorry this is such a large CL. It was very exploratory for me to make this
work.
- Add an interface to SkFontHost to retrieve font information and provide NULL implementations on all platforms except Linux.
- Segment large Type 1 fonts into fonts with shared resources with 255 glyphs each.
- Convert the various Type 1 formats to the form PDF wants.
- Update font as we draw text instead of as part of the graphical state.
- Remove built-in font support, we can't really use it.
Other changes I can pull out to a separate CL if you like.
- Add SkTScopedPtr class.
- Fix double free of resources.
- Fix bug in resource unique-ifying code.
- Don't print anything for any empty clip path.
- Fix copy paste error - MiterLimit.
- Fix sign extension bug in SkPDFString
- Fix FlateTest rename that was missed on a previous commit.
Committed: http://code.google.com/p/skia/source/detail?r=728
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1530 lines, -200 lines) |
Patch |
|
M |
include/core/SkFontHost.h
|
View
|
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
include/core/SkTScopedPtr.h
|
View
|
1
2
3
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkTemplates.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
include/core/SkTypeface.h
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
include/pdf/SkPDFDevice.h
|
View
|
1
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
include/pdf/SkPDFFont.h
|
View
|
1
2
3
4
|
3 chunks |
+65 lines, -22 lines |
0 comments
|
Download
|
|
A |
include/pdf/SkPDFTypefaceInfo.h
|
View
|
1
2
3
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkTypeface.cpp
|
View
|
1
|
2 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
|
M |
src/pdf/SkPDFDevice.cpp
|
View
|
1
|
10 chunks |
+104 lines, -51 lines |
0 comments
|
Download
|
|
M |
src/pdf/SkPDFDocument.cpp
|
View
|
1
|
3 chunks |
+19 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/pdf/SkPDFFont.cpp
|
View
|
1
2
3
4
|
4 chunks |
+740 lines, -103 lines |
0 comments
|
Download
|
|
M |
src/pdf/SkPDFGraphicState.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pdf/SkPDFTypes.cpp
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_FONTPATH.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_FreeType.cpp
|
View
|
1
2
3
4
|
2 chunks |
+285 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_android.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_fontconfig.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_mac_atsui.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_mac_coretext.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_none.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_simple.cpp
|
View
|
1
|
2 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ports/SkFontHost_win.cpp
|
View
|
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/FlateTest.cpp
|
View
|
1
2
3
4
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 12
|