We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`use iced::{Element, Sandbox, Settings, Text};
pub fn main() { Hello::run(Settings::default()) }
struct Hello;
impl Sandbox for Hello { type Message = ();
fn new() -> Hello { Hello } fn title(&self) -> String { String::from("A cool application") } fn update(&mut self, _message: Self::Message) { // This application has no interactions } fn view(&mut self) -> Element<Self::Message> { Text::new("Hello,无法显示中文 world!").into() }
}`
I tried this , but there were no chinese character displayed on it. just empty blocks.
The text was updated successfully, but these errors were encountered:
See #33, #208, #213, and #227.
Sorry, something went wrong.
let setting = Settings { window: window::Settings { size:(800,600), resizable: true, decorations: true, }, flags:(), default_font:Some(include_bytes!("../fonts/fang_song.ttf")), //设置中文的.ttf字体可以支持中文 antialiasing:true }; Counter::run(setting);
可以从C:\Windows\Fonts 中找宋体的ttf字体设置
No branches or pull requests
`use iced::{Element, Sandbox, Settings, Text};
pub fn main() {
Hello::run(Settings::default())
}
struct Hello;
impl Sandbox for Hello {
type Message = ();
}`
I tried this , but there were no chinese character displayed on it. just empty blocks.
The text was updated successfully, but these errors were encountered: