File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
renderer/src/component/primitive Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -233,11 +233,12 @@ fn to_text_buffer(
233233 font_family : & str ,
234234) -> Buffer {
235235 let mut text_buffer = Buffer :: new ( font_system, Metrics :: new ( font_size, 1.2 * font_size) ) ;
236+ let attrs = Attrs :: new ( ) . family ( Family :: Name ( font_family) ) ;
236237 text_buffer. set_size ( font_system, None , None ) ;
237238 text_buffer. set_text (
238239 font_system,
239240 text,
240- Attrs :: new ( ) . family ( Family :: Name ( font_family ) ) ,
241+ & attrs ,
241242 Shaping :: Advanced ,
242243 ) ;
243244 text_buffer. shape_until_scroll ( font_system, false ) ;
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ async fn create_device() -> (Device, Queue) {
5656 required_features : Features :: default ( ) ,
5757 required_limits : Limits :: default ( ) ,
5858 memory_hints : MemoryHints :: default ( ) ,
59+ trace : wgpu:: Trace :: default ( ) ,
5960 } ,
60- None ,
6161 )
6262 . await
6363 . expect ( "Failed to create device" )
You can’t perform that action at this time.
0 commit comments