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
error[E0599]: no method named `to_string` found for struct `ttf_parser::tables::name::Name<'_>` in the current scope
--> src/font.rs:212:25
|
212 | return name.to_string();
| ^^^^^^^^^ method not found in `ttf_parser::tables::name::Name<'_>`
I was able to get the samples running by replacing the call to to_string() with a call to format!() (for which I had to add #[macro_use] extern crate std; to lib.rs), but clearly that is just a kludge.
The text was updated successfully, but these errors were encountered:
mensi
added a commit
to mensi/fontdue
that referenced
this issue
Mar 19, 2021
to_string is only available when using ttf-parser with the "std"
feature. Without it you currently can't compile.
This change implements the UTF16BE conversion on the raw data and
fixesmooman219#57.
When doing
cargo run --example layout
, I getI was able to get the samples running by replacing the call to
to_string()
with a call toformat!()
(for which I had to add#[macro_use] extern crate std;
tolib.rs
), but clearly that is just a kludge.The text was updated successfully, but these errors were encountered: