servo / font-kit

A cross-platform font loading library written in Rust
Apache License 2.0
678 stars 100 forks source link

Changed examples/render-glyph to handle multi-byte characters #176

Closed taishi132 closed 3 years ago

taishi132 commented 3 years ago

Before this change, a garbage glyph would be rendered if a multi-byte character was used as input on the command line. Now it will render properly if the selected font supports the corresponding glyph.

Ex: ArialMT ä works. ArialMT 心 doesn't work because Arial doesn't have the glyph. SimSun 心 works.

jdm commented 3 years ago

@bors-servo r+ Thanks for fixing this!

bors-servo commented 3 years ago

:pushpin: Commit d1cf3c2 has been approved by jdm

bors-servo commented 3 years ago

:hourglass: Testing commit d1cf3c208a427706c413d8b8017fd5d93a57548f with merge 1bfbc93b4e3ae759fb6da198505d1821213facb2...

bors-servo commented 3 years ago

:sunny: Test successful - checks-travis Approved by: jdm Pushing 1bfbc93b4e3ae759fb6da198505d1821213facb2 to master...