New issue
Advanced search Search tips
Starred by 8 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 30
Cc:
Area: Font
Priority: Medium
Type: Defect


Show other hotlists

Hotlists containing this issue:
Hotlist-1


Sign in to add a comment

Bitmap-only font scaling?

Reported by behdad@google.com, May 28 2013

Issue description

If I modify samplecode/SampleText.cpp to load a bitmap-only font, I expect that Skia do the bitmap scaling for me transparently.  But it doesn't.  If I ask for font sizes other than the bitmap strikes, I get nothing rendered.  This is with the FreeType font host.
 
Project Member

Comment 1 by reed@google.com, May 28 2013

Which of my installed fonts are bitmap-only? If I don't have any, can you attach one to this issue?
Project Member

Comment 2 by reed@google.com, May 28 2013

Cc: bungeman@google.com reed@google.com scro...@google.com
Owner: ----

Comment 3 by behdad@google.com, May 28 2013

Attached "Fixed" 10x20 from X11 distribution.
10x20.pcf.gz
99 KB Download
Project Member

Comment 4 by reed@google.com, Jul 17 2013

Owner: reed@google.com
wow, didn't know freetype would eat a PCF font directly.
Project Member

Comment 6 by scro...@google.com, Jul 29 2013

Cc: -scro...@google.com
Project Member

Comment 7 by hcm@google.com, Aug 26 2014

Labels: Area-Font
Project Member

Comment 8 by hcm@google.com, Dec 7 2015

Labels: Hotlist-Fixit
Project Member

Comment 9 by caryclark@google.com, Feb 26 2016

Cc: -bungeman@google.com
Owner: bungeman@google.com
I see that the bug referred to 1322 is fixed -- is this also fixed?
I see that the bug referred to 1322 is fixed -- is this also 
Project Member

Comment 11 by bungeman@google.com, Aug 30

Status: Fixed (was: New)
I locally modified the 'typefacerendering' gm to use my local 10x20.pcf.gz , and everything works more or less as expected. Scaling, rotation, subpixel positioning and mask effects (blur) all work fine. If building with SK_USE_FREETYPE_EMBOLDEN then fake bold also works. Path effects are ignored, and it appears hairline stroking won't work. There is currently one issue in testing when FreeType thinks there is an actual outline or not, but that's  issue 7878  which I think I know how to fix now.

Sign in to add a comment