aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
Commit message (Collapse)AuthorAge
* Prepend SkAdvancedTypefaceMetrics on enum usage.Gravatar ctguil@chromium.org2011-03-30
| | | | | | Review URL: http://codereview.appspot.com/4321047 git-svn-id: http://skia.googlecode.com/svn/trunk@1024 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve the SkAdvancedTypefaceMetrics interface w.r.t. vertical advances.Gravatar vandebo@chromium.org2011-03-30
| | | | | | | | Add a template function to type safe-combine bits of a bit field. Review URL: http://codereview.appspot.com/4313053 git-svn-id: http://skia.googlecode.com/svn/trunk@1020 2bbb7eff-a529-9590-31e7-b0007b416f81
* inline knowledge that our pointsize is always 1 when we measure/drawGravatar reed@google.com2011-03-22
| | | | | | | | #ifdef protect 10.6 or later APIs (not available on 10.5) git-svn-id: http://skia.googlecode.com/svn/trunk@982 2bbb7eff-a529-9590-31e7-b0007b416f81
* add SkCreateTypefaceFromCTFont() to create a typeface directly from a CTFontRefGravatar reed@google.com2011-03-22
| | | | | | | | | Compute the actual style from the returned CTFontRef, rather than assuming the request will always be met. git-svn-id: http://skia.googlecode.com/svn/trunk@979 2bbb7eff-a529-9590-31e7-b0007b416f81
* map canonical css names to real fontsGravatar mike@reedtribe.org2011-03-22
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@975 2bbb7eff-a529-9590-31e7-b0007b416f81
* Initial GYP file for skia / gr. Builds SampleApp on Mac, Windows, Linux.Gravatar bsalomon@google.com2011-03-18
| | | | | | Review URL: http://codereview.appspot.com/4282056/ git-svn-id: http://skia.googlecode.com/svn/trunk@955 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstreaming changes from android.Gravatar djsollen@google.com2011-03-14
| | | | | | | | | | - fix compile warnings in the GPU code - upstream android specific code (ifdef protected) - fail gracefully when a custom allocator fails git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81
* trim 3-byte column at start and end of freetype bitmapGravatar reed@google.com2011-03-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@935 2bbb7eff-a529-9590-31e7-b0007b416f81
* disable lcd format for lcd16 as wellGravatar reed@google.com2011-03-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@934 2bbb7eff-a529-9590-31e7-b0007b416f81
* add LCD16 copy routineGravatar reed@google.com2011-03-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@932 2bbb7eff-a529-9590-31e7-b0007b416f81
* use system font path when building on the macGravatar reed@google.com2011-03-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@931 2bbb7eff-a529-9590-31e7-b0007b416f81
* work around linker-error when building on the MacGravatar reed@google.com2011-03-14
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@930 2bbb7eff-a529-9590-31e7-b0007b416f81
* support lcd16 mask formatGravatar reed@google.com2011-03-11
| | | | | | | | convert line-endings to unix style (the default for skia) git-svn-id: http://skia.googlecode.com/svn/trunk@923 2bbb7eff-a529-9590-31e7-b0007b416f81
* check-point for kLCD16_Format mask supportGravatar reed@google.com2011-03-10
| | | | | | | | disabled for now in SkPaint.cpp (for further testing) git-svn-id: http://skia.googlecode.com/svn/trunk@917 2bbb7eff-a529-9590-31e7-b0007b416f81
* PDF Type3 Support.Gravatar ctguil@chromium.org2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@892 2bbb7eff-a529-9590-31e7-b0007b416f81
* Update windows port of of SkFontHost::GetAdvancedTypefaceMetrics to use ↵Gravatar ctguil@chromium.org2011-03-04
| | | | | | | | calculateGlyphCount. Review URL: http://codereview.appspot.com/4245060 git-svn-id: http://skia.googlecode.com/svn/trunk@890 2bbb7eff-a529-9590-31e7-b0007b416f81
* Implement SkScalerContext_Windows::generateGlyphCount() and provide access ↵Gravatar ctguil@chromium.org2011-03-04
| | | | | | | | | | via SkGlyphCache interface. * This will be used by PDF font code. Review URL: http://codereview.appspot.com/4261042 git-svn-id: http://skia.googlecode.com/svn/trunk@888 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkCreateTypefaceFromLOGFONTGravatar reed@google.com2011-03-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@886 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete generateLineHeightGravatar reed@google.com2011-03-01
| | | | | | | | | | | use canonical lfHeight so we can compare different LOGFONTs and map equivalent fonts (except for height) to the same typeface. To do this I add fSize to scale the output from GDI to get from the canonical int textSize to the actual fractional size. git-svn-id: http://skia.googlecode.com/svn/trunk@871 2bbb7eff-a529-9590-31e7-b0007b416f81
* export SkCreateTypefaceFromLOGFONTGravatar reed@google.com2011-02-28
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@864 2bbb7eff-a529-9590-31e7-b0007b416f81
* Upstreaming code from android repository.Gravatar djsollen@google.com2011-02-24
| | | | | | | | | | * fix for png decoder * clean up for SkFontHost reviewed by reed@google.com git-svn-id: http://skia.googlecode.com/svn/trunk@847 2bbb7eff-a529-9590-31e7-b0007b416f81
* merge from android tree:Gravatar djsollen@google.com2011-02-23
| | | | | | | | | | | | | - optional parameters added to descriptorProc and allocPixels - clip options to image decoders - check for xfermode in blitter_a8 - UNROLL loops in blitrow reviewed by reed@google.com git-svn-id: http://skia.googlecode.com/svn/trunk@841 2bbb7eff-a529-9590-31e7-b0007b416f81
* Support unicode to glyph id conversion in windows for non-BMP characters.Gravatar ctguil@chromium.org2011-02-23
| | | | | | | | BUG=144 Review URL: http://codereview.appspot.com/4172054 git-svn-id: http://skia.googlecode.com/svn/trunk@839 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to add isFixedWidth attribute to typefacesGravatar reed@google.com2011-02-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@838 2bbb7eff-a529-9590-31e7-b0007b416f81
* add fixed-width attribute to typefaceGravatar reed@google.com2011-02-23
| | | | | | | | (patch from russellbrenner) git-svn-id: http://skia.googlecode.com/svn/trunk@837 2bbb7eff-a529-9590-31e7-b0007b416f81
* Set fLastGlyphID in SkFontHost::GetAdvancedTypefaceMetrics for windows.Gravatar ctguil@chromium.org2011-02-17
| | | | | | Review URL: http://codereview.appspot.com/4178060 git-svn-id: http://skia.googlecode.com/svn/trunk@809 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix file modes.Gravatar vandebo@chromium.org2011-02-14
| | | | | | Review URL: http://codereview.appspot.com/4178051 git-svn-id: http://skia.googlecode.com/svn/trunk@790 2bbb7eff-a529-9590-31e7-b0007b416f81
* Provide windows font host implementation needed to support TrueType text in ↵Gravatar vandebo@chromium.org2011-02-14
| | | | | | | | | | pdf backend. - Move AdvanceMetric template functions into new file SkAdvancedTypefaceMetrics.cpp Review URL: http://codereview.appspot.com/4174041 git-svn-id: http://skia.googlecode.com/svn/trunk@789 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix compile-error, mismatch between fontID and idGravatar reed@google.com2011-02-14
| | | | | | | | http://code.google.com/p/skia/issues/detail?id=149 git-svn-id: http://skia.googlecode.com/svn/trunk@787 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use real glyph IDs in the win fonthost to better support pdf.Gravatar vandebo@chromium.org2011-02-10
| | | | | | Review URL: http://codereview.appspot.com/4142044 git-svn-id: http://skia.googlecode.com/svn/trunk@782 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove extra stub definition of GetAdvancedTypefaceMetrics.Gravatar vandebo@chromium.org2011-02-09
| | | | | | | | | BUG=140 TEST=NONE Review URL: http://codereview.appspot.com/4150043 git-svn-id: http://skia.googlecode.com/svn/trunk@779 2bbb7eff-a529-9590-31e7-b0007b416f81
* addGravatar reed@google.com2011-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@770 2bbb7eff-a529-9590-31e7-b0007b416f81
* addGravatar reed@google.com2011-02-07
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@769 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improve usability of SkAdvancedTypefaceMetrics for non PDF cases.Gravatar vandebo@chromium.org2011-02-03
| | | | | | | | Change the code to fill out the metrics even if the font isn't embeddable. Previously, if the font wasn't embeddable, the code would set the type to not embeddable and return without filling out the rest of the metrics. Review URL: http://codereview.appspot.com/3973053 git-svn-id: http://skia.googlecode.com/svn/trunk@758 2bbb7eff-a529-9590-31e7-b0007b416f81
* Cleanup SkPDFTypfaceInfo and make it more generic.Gravatar vandebo@chromium.org2011-02-02
| | | | | | | | | | | | Renamed to SkAdvancedTypefaceMetrics. Include Em size and return all metrics in unscaled font units. Make retrieval of advances optional. Reorder SkAdvancedTypefaceMetrics to be somewhat logical. Change the types of fields in SkAdvancedTypefaceMetrics to their minimum required size. Review URL: http://codereview.appspot.com/4121049 git-svn-id: http://skia.googlecode.com/svn/trunk@752 2bbb7eff-a529-9590-31e7-b0007b416f81
* [PDF] Add replacement implementations for functions missing in older ↵Gravatar vandebo@chromium.org2011-01-28
| | | | | | | | freetype libs. Review URL: http://codereview.appspot.com/4043044 git-svn-id: http://skia.googlecode.com/svn/trunk@743 2bbb7eff-a529-9590-31e7-b0007b416f81
* conditionalize impl on SK_SUPPORT_PDF, to help chrome buildGravatar reed@google.com2011-01-26
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@740 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix windows build.Gravatar vandebo@chromium.org2011-01-26
| | | | | | Review URL: http://codereview.appspot.com/3996048 git-svn-id: http://skia.googlecode.com/svn/trunk@739 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add Truetype and Type 1 font embedding supportGravatar vandebo@chromium.org2011-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | 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. Review URL: http://codereview.appspot.com/4082042 git-svn-id: http://skia.googlecode.com/svn/trunk@728 2bbb7eff-a529-9590-31e7-b0007b416f81
* add port for Brew - untestedGravatar reed@google.com2011-01-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@682 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix for issue 93: need to rewind the shared stream each time openStream() is ↵Gravatar reed@google.com2011-01-04
| | | | | | called git-svn-id: http://skia.googlecode.com/svn/trunk@672 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix uninitialized warningGravatar reed@google.com2011-01-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@669 2bbb7eff-a529-9590-31e7-b0007b416f81
* make inline helper static, so it can be included from than one .cppGravatar reed@android.com2011-01-03
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@667 2bbb7eff-a529-9590-31e7-b0007b416f81
* PDF: Add text support with a font framework (font embedding to come).Gravatar vandebo@chromium.org2010-11-11
| | | | | | | | | | | | 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
* Add support for TTC font files in SkFontHost_Freetype.Gravatar agl@chromium.org2010-08-06
| | | | | | | | | | | | | | This is a companion change to a Chrome CL ( http://codereview.chromium.org/2870073/show ) (Patch by: jshin (Chromium)) BUG=http://crbug.com/50389 TEST=See the Chromium CL mentioned above. http://codereview.appspot.com/1847046 git-svn-id: http://skia.googlecode.com/svn/trunk@593 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix matrix use in coretext fonthostGravatar reed@android.com2010-07-22
| | | | | | | | update gm images to new baseline git-svn-id: http://skia.googlecode.com/svn/trunk@590 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix reference bugs in font linklistGravatar reed@android.com2010-07-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@587 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for forcing autohinting.Gravatar agl@chromium.org2010-06-17
| | | | | | http://codereview.appspot.com/1651044/show git-svn-id: http://skia.googlecode.com/svn/trunk@580 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add include of FT_SYNTHESIS_HGravatar agl@chromium.org2010-06-04
| | | | | | | In older versions of Freetype, the FT_GlyphSlot_Own_Bitmap function is defined in FT_SYNTHESIS_H. Modern versions have it in FT_BITMAP_H. git-svn-id: http://skia.googlecode.com/svn/trunk@575 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for fake bold of bitmap fonts.Gravatar agl@chromium.org2010-06-04
| | | | | | | | BUG=45874 http://codereview.appspot.com/1558041/show git-svn-id: http://skia.googlecode.com/svn/trunk@574 2bbb7eff-a529-9590-31e7-b0007b416f81