Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
plotters-rs

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to make the registered font effective#683

Unanswered
cherish-ltt asked this question inQ&A
Discussion options

I registered the font

let font_name = "sans-serif123";let re = plotters::style::register_font(font_name, FontStyle::Oblique, include_bytes!("../Songti.ttc"));

When I useBitMapBackend to createx.png
i use :

...let font_style = FontDesc::new(plotters::style::FontFamily::Name(font_name), 30.0, FontStyle::Oblique);....caption("折线图aaa", font_style)

After successfully outputting PNG, only Englishaaa will be displayed instead of Chinese折线图

Image
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@cherish-ltt

[8]ページ先頭

©2009-2025 Movatter.jp