You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The portion of the run to calculate the typographic bounds for. By setting this to 0,
92
+
// CoreText will measure the bounds from start to end, see https://developer.apple.com/documentation/coretext/1510569-ctrungettypographicbounds?language=objc.
93
+
let range = CFRange{
94
+
location:0,
95
+
length:0,
96
+
};
97
+
98
+
let width = CTRunGetTypographicBounds(
99
+
self.as_concrete_TypeRef(),
100
+
range,
101
+
&mut ascent,
102
+
&mut descent,
103
+
&mut leading,
104
+
);
105
+
TypographicBounds{
106
+
width,
107
+
ascent,
108
+
descent,
109
+
leading,
110
+
}
111
+
}
112
+
}
113
+
84
114
pubfnstring_indices(&self) -> Cow<[CFIndex]>{
85
115
unsafe{
86
116
// CTRunGetStringIndicesPtr can return null under some not understood circumstances.
0 commit comments