servo / font-kit

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

Allow getting individual sources from a `MultiSource`. #170

Closed derekdreery closed 3 years ago

derekdreery commented 3 years ago

This PR has 2 parts

  1. Make Source inherit Any to allow downcasting.
  2. Allow getting access to Sources in a MultiSource.

These things together allow access to the constituent sources in a multisource, for example to allow adding to a MemSource.

jdm commented 3 years ago

@bors-servo r+

bors-servo commented 3 years ago

:pushpin: Commit 9ba744d has been approved by jdm

bors-servo commented 3 years ago

:hourglass: Testing commit 9ba744d25c54ac054e652cce157539b4f0f2de7f with merge b181122c06ec29773abdc00d53d7af8cf763870e...

bors-servo commented 3 years ago

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