提交 5ed6b6ec 编写于 作者: C Chinmay Garde 提交者: GitHub

Minor update to the name of the argument used to find the fallback font. (#2808)

上级 855e2391
......@@ -94,21 +94,21 @@ class FontFallbackSelector {
CTFontCreateWithFontDescriptor(desc.get(), ui_desc.pointSize, nullptr)};
}
CFRef<CTFontDescriptorRef> fallbackFont(UChar32 glyph) {
CFRef<CTFontDescriptorRef> fallbackFont(UChar32 codepoint) {
if (!_prototype) {
return {};
}
base::mac::ScopedNSAutoreleasePool pool;
glyph = CFSwapInt32HostToLittle(glyph);
codepoint = CFSwapInt32HostToLittle(codepoint);
CFRef<CFStringRef> unicode_string(CFStringCreateWithBytes(
kCFAllocatorDefault, // allocator
reinterpret_cast<const UInt8*>(&glyph), // buffer
sizeof(glyph), // size
kCFStringEncodingUTF32LE, // excoding
false // external representation
kCFAllocatorDefault, // allocator
reinterpret_cast<const UInt8*>(&codepoint), // buffer
sizeof(codepoint), // size
kCFStringEncodingUTF32LE, // excoding
false // external representation
));
if (!unicode_string) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册