Set fixed pitch bit in DirectWrite port.
Previously the SkTypeface backed by DirectWrite always reported false for the fixed pitch style bit. Set the value correctly when it is known. Change-Id: I77fd1e5356b70928362ab49752cc50c32596f565 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/255264 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
9fdebfb377
commit
59f991a31f
@ -68,6 +68,10 @@ private:
|
||||
if (!SUCCEEDED(fFactory->QueryInterface(&fFactory2))) {
|
||||
SkASSERT_RELEASE(nullptr == fFactory2.get());
|
||||
}
|
||||
|
||||
if (fDWriteFontFace1 && fDWriteFontFace1->IsMonospacedFont()) {
|
||||
this->setIsFixedPitch(true);
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user