[webkit-changes] [WebKit/WebKit] 58c01e: text-spacing: text-spacing-trim: Implement derived...
Vitor Roriz
noreply at github.com
Tue Oct 15 12:57:52 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 58c01e33d993c0522a6bd711dd21fb105959857d
https://github.com/WebKit/WebKit/commit/58c01e33d993c0522a6bd711dd21fb105959857d
Author: Vitor Roriz <vitor.roriz at apple.com>
Date: 2024-10-15 (Tue, 15 Oct 2024)
Changed paths:
M Source/WebCore/platform/graphics/Font.cpp
M Source/WebCore/platform/graphics/Font.h
M Source/WebCore/platform/graphics/coretext/FontCoreText.cpp
M Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp
M Source/WebCore/platform/graphics/skia/FontSkia.cpp
M Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp
Log Message:
-----------
text-spacing: text-spacing-trim: Implement derived half-width font for CoreText platform
https://bugs.webkit.org/show_bug.cgi?id=281340
rdar://137770955
Reviewed by Sammy Gill.
This is a preparation patch for text-spacing-trim.
According to specification, trimming should be done
by using OpenType "halt" feature.
This patch creates a derived half-width font by
enabling the OpenType "halt" feature of an existent font.
It also implements a way to verify if a given font
supports such feature.
* Source/WebCore/platform/graphics/Font.cpp:
(WebCore::Font::halfWidthFont const):
(WebCore::Font::createHalfWidthFont const):
* Source/WebCore/platform/graphics/Font.h:
* Source/WebCore/platform/graphics/coretext/FontCoreText.cpp:
(WebCore::Font::supportsOpenTypeAlternateHalfWidths const):
(WebCore::supportsOpenTypeFeature):
(WebCore::Font::platformCreateHalfWidthFont const):
* Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp:
(WebCore::Font::platformCreateHalfWidthFont const):
* Source/WebCore/platform/graphics/skia/FontSkia.cpp:
(WebCore::Font::platformCreateHalfWidthFont const):
* Source/WebCore/platform/graphics/win/SimpleFontDataWin.cpp:
(WebCore::Font::platformCreateHalfWidthFont const):
Canonical link: https://commits.webkit.org/285219@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list