aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkScalerContext.h
Commit message (Collapse)AuthorAge
* Merge changes from the android repo upstream to SkiaGravatar djsollen@google.com2012-02-15
| | | | | | Review URL: https://codereview.appspot.com/5545070 git-svn-id: http://skia.googlecode.com/svn/trunk@3199 2bbb7eff-a529-9590-31e7-b0007b416f81
* if SK_USE_COLOR_LUMINANCE is defined, then we store 2 bits of each componentGravatar reed@google.com2012-02-13
| | | | | | | | | to create a per-component-luminance value for the fonthost to use. Only supported on Mac at the moment (but still disabled by default) git-svn-id: http://skia.googlecode.com/svn/trunk@3180 2bbb7eff-a529-9590-31e7-b0007b416f81
* enable color-luminance in font cache (disabled by default)Gravatar reed@google.com2012-02-10
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@3168 2bbb7eff-a529-9590-31e7-b0007b416f81
* store luminance in a new fieldGravatar reed@google.com2012-02-07
| | | | | | Review URL: https://codereview.appspot.com/5644047 git-svn-id: http://skia.googlecode.com/svn/trunk@3149 2bbb7eff-a529-9590-31e7-b0007b416f81
* add GenA8FromLCD as a hack to force GDI to create the A8 mask from the LCDGravatar reed@google.com2012-01-18
| | | | | | | | | results, rather than asking GDI directly for A8 (which it sometimes decides to interpret as BW) git-svn-id: http://skia.googlecode.com/svn/trunk@3061 2bbb7eff-a529-9590-31e7-b0007b416f81
* expose isSubpixel() on the cache, so SkDraw can know if it should expectGravatar reed@google.com2012-01-03
| | | | | | | | subpixel text (it may be that the paint requested it, but the scaler ignored it) git-svn-id: http://skia.googlecode.com/svn/trunk@2946 2bbb7eff-a529-9590-31e7-b0007b416f81
* store 3 bits of luminance, but (for now) discretize that in fonthost::filterecGravatar reed@google.com2011-11-22
| | | | | | | | for backward compatibility git-svn-id: http://skia.googlecode.com/svn/trunk@2732 2bbb7eff-a529-9590-31e7-b0007b416f81
* use a define for the shift amount for the hinting bitsGravatar reed@google.com2011-11-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2726 2bbb7eff-a529-9590-31e7-b0007b416f81
* reorder bits and remove obsolete kForceAA experimental bitGravatar reed@google.com2011-11-21
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2725 2bbb7eff-a529-9590-31e7-b0007b416f81
* add vertical-text bit to paint (not supported yet)Gravatar reed@google.com2011-11-10
| | | | | | | | check-point for using freetype on mac (not enabled yet) git-svn-id: http://skia.googlecode.com/svn/trunk@2657 2bbb7eff-a529-9590-31e7-b0007b416f81
* need these for the forceaa changeGravatar reed@google.com2011-09-30
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2391 2bbb7eff-a529-9590-31e7-b0007b416f81
* move SkComputeAxisAlignmentForHText(const SkMatrix& matrix) out of inline,Gravatar reed@google.com2011-08-24
| | | | | | | | | since that isn't really necessary, and it is generating a warning/error for some builds ('defined but not used') git-svn-id: http://skia.googlecode.com/svn/trunk@2169 2bbb7eff-a529-9590-31e7-b0007b416f81
* respect subpixel positioningGravatar reed@google.com2011-08-23
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2165 2bbb7eff-a529-9590-31e7-b0007b416f81
* add api for scalers to force us to use skia to generate their bits from theirGravatar reed@google.com2011-08-05
| | | | | | | | | path. This may allow the windows scaler to do that if GDI is giving bad results (i.e. not respecting the request for antialiasing). git-svn-id: http://skia.googlecode.com/svn/trunk@2054 2bbb7eff-a529-9590-31e7-b0007b416f81
* Automatic update of all copyright notices to reflect new license terms.Gravatar epoger@google.com2011-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove SkDeviceFactory from the collective consciousness, now that devices knowGravatar reed@google.com2011-07-06
| | | | | | | | how to create compatible siblings. git-svn-id: http://skia.googlecode.com/svn/trunk@1808 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove obsolete text codepathsGravatar reed@google.com2011-06-27
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1725 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add support for 8 bits/component glyphs, toGravatar caryclark@google.com2011-06-22
| | | | | | | | | | | | | | | | | | | | better match the fonts produced by CoreText on OS/X. M include/config/SkUserConfig.h M include/core/SkMask.h M include/core/SkScalerContext.h M src/core/SkBlitter_ARGB32.cpp M src/core/SkScalerContext.cpp M src/core/SkPaint.cpp M src/gpu/SkGrFontScaler.cpp M src/ports/SkFontHost_mac_coretext.cpp M src/ports/SkFontHost_mac.cpp M gpu/include/GrTypes.h M gpu/src/GrAtlas.cpp git-svn-id: http://skia.googlecode.com/svn/trunk@1672 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 2nd parameter to SkFontHost::NextLogicalFont()Gravatar reed@google.com2011-06-13
| | | | | | | | needed by android to map different styles of fallback fonts git-svn-id: http://skia.googlecode.com/svn/trunk@1562 2bbb7eff-a529-9590-31e7-b0007b416f81
* encode current LCD orientation and order into font-cache-keyGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1368 2bbb7eff-a529-9590-31e7-b0007b416f81
* support lcd16 in text atlas (sans shader support)Gravatar reed@google.com2011-03-15
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@939 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
* 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
* remove dead conditional codeGravatar reed@google.com2011-02-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@811 2bbb7eff-a529-9590-31e7-b0007b416f81
* initialize SkGlyph::fMaskFormat to avoid valgrind warningsGravatar reed@google.com2011-01-13
| | | | | | | | rebaseline gradients now that we dither our 32bit src git-svn-id: http://skia.googlecode.com/svn/trunk@692 2bbb7eff-a529-9590-31e7-b0007b416f81
* merge with changes for GPU backendGravatar reed@android.com2010-12-20
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@637 2bbb7eff-a529-9590-31e7-b0007b416f81
* Clamp the maximum size of glyph width we will attempt to render.Gravatar scarybeasts@gmail.com2010-10-18
| | | | | | | | Review URL: http://codereview.appspot.com/2519045 git-svn-id: http://skia.googlecode.com/svn/trunk@607 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
* This patch allows the use of the native FreeType emboldeningGravatar senorblanco@chromium.org2010-02-05
| | | | | | | | | | | | algorithm when "fake bold" text is used in SkPaint. It's enabled by #defining SK_USE_FREETYPE_EMBOLDEN. Review URL: http://codereview.appspot.com/198077 git-svn-id: http://skia.googlecode.com/svn/trunk@490 2bbb7eff-a529-9590-31e7-b0007b416f81
* add glyph->unichar query (inverse of a cmap)Gravatar reed@android.com2010-01-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@472 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix r466 which was causing Chromium valgrind failures.Gravatar agl@chromium.org2010-01-04
| | | | | | | | See the added comment for details. TBR=reed (since it's a build fix) git-svn-id: http://skia.googlecode.com/svn/trunk@469 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add flag to enable bitmap strikes.Gravatar agl@chromium.org2010-01-04
| | | | | | http://codereview.appspot.com/183096 git-svn-id: http://skia.googlecode.com/svn/trunk@466 2bbb7eff-a529-9590-31e7-b0007b416f81
* ws fixesGravatar reed@android.com2009-07-27
| | | | | | | | use enum in getHinting() function, rather than hard-coded constants git-svn-id: http://skia.googlecode.com/svn/trunk@290 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add SkFontHost::FilterRect() which allows the font host to filter our requestGravatar reed@android.com2009-07-22
| | | | | | | | | | before we turn it into a font-cache entry, for the cases where the scaler will ignore and/or collapse certain feature requests (e.g. doesn't support all levels of hinting) git-svn-id: http://skia.googlecode.com/svn/trunk@283 2bbb7eff-a529-9590-31e7-b0007b416f81
* Subpixel glyph rendering support.Gravatar agl@chromium.org2009-07-21
| | | | | | | | | | | | | | | | This patch adds support for rendering subpixel glyphs (using Freetype). In order to control this rendering see SkPaint::setLCDRenderText in SkPaint.h. To setup the LCD mode, see SkFontHost::SetSubpixelOrientation and SkFontHost::SetSubpixelOrder in SkFontHost.h. This patch also adds more fine grained control over hinting (again, only for Freetype currently). One can now control the hinting with SkPaint::setHinting. git-svn-id: http://skia.googlecode.com/svn/trunk@275 2bbb7eff-a529-9590-31e7-b0007b416f81
* Simplify font-chaining (fallbacks) to have fonthost just return the nextGravatar reed@android.com2009-03-17
| | | | | | | | | | logical fontID. Extend ImageRef to accept an imagedecoder factory, to replace calling the std one. git-svn-id: http://skia.googlecode.com/svn/trunk@125 2bbb7eff-a529-9590-31e7-b0007b416f81
* handle failure when creating a scalercontextGravatar reed@android.com2009-02-11
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@90 2bbb7eff-a529-9590-31e7-b0007b416f81
* grab from latest androidGravatar reed@android.com2008-12-17
git-svn-id: http://skia.googlecode.com/svn/trunk@27 2bbb7eff-a529-9590-31e7-b0007b416f81