Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 718867e

Browse files
committed
Bug 1691170 - Replace deprecated kCTFontDefaultOrientation with its replacement kCTFontOrientationDefault. r=jrmuizel
Depends on D104301 Differential Revision: https://phabricator.services.mozilla.com/D104302
1 parent 396d38c commit 718867e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gfx/2d/DrawTargetSkia.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ bool DrawTargetSkia::FillGlyphsWithCG(ScaledFont* aFont,
12471247

12481248
// Calculate the area of the text we just drew
12491249
auto* bboxes = new CGRect[aBuffer.mNumGlyphs];
1250-
CTFontGetBoundingRectsForGlyphs(macFont->mCTFont, kCTFontDefaultOrientation,
1250+
CTFontGetBoundingRectsForGlyphs(macFont->mCTFont, kCTFontOrientationDefault,
12511251
glyphs.begin(), bboxes, aBuffer.mNumGlyphs);
12521252
CGRect extents =
12531253
ComputeGlyphsExtents(bboxes, positions.begin(), aBuffer.mNumGlyphs, 1.0f);

gfx/thebes/gfxMacFont.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ int32_t gfxMacFont::GetGlyphWidth(uint16_t aGID) {
462462
}
463463

464464
CGSize advance;
465-
::CTFontGetAdvancesForGlyphs(mCTFont, kCTFontDefaultOrientation, &aGID,
465+
::CTFontGetAdvancesForGlyphs(mCTFont, kCTFontOrientationDefault, &aGID,
466466
&advance, 1);
467467
return advance.width * 0x10000;
468468
}

0 commit comments

Comments
 (0)