Skip to content

Commit e5060e5

Browse files
committed
Fix CI build
Signed-off-by: Aaron Erhardt <aaron.erhardt@t-online.de>
1 parent c668e11 commit e5060e5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ It is pure Rust, and easier to cross compile.
546546
To use this, you *must* call `plotters::style::register_font` before
547547
using any `plotters` functions which require the ability to render text.
548548
This function only exists when the `ab_glyph` feature is enabled.
549-
```rust
549+
```rust,ignore
550550
/// Register a font in the fonts table.
551551
///
552552
/// The `name` parameter gives the name this font shall be referred to

doc-template/readme.template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ It is pure Rust, and easier to cross compile.
289289
To use this, you *must* call `plotters::style::register_font` before
290290
using any `plotters` functions which require the ability to render text.
291291
This function only exists when the `ab_glyph` feature is enabled.
292-
```rust
292+
```rust,ignore
293293
/// Register a font in the fonts table.
294294
///
295295
/// The `name` parameter gives the name this font shall be referred to

plotters/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ It is pure Rust, and easier to cross compile.
686686
To use this, you *must* call `plotters::style::register_font` before
687687
using any `plotters` functions which require the ability to render text.
688688
This function only exists when the `ab_glyph` feature is enabled.
689-
```rust
689+
```rust,ignore
690690
/// Register a font in the fonts table.
691691
///
692692
/// The `name` parameter gives the name this font shall be referred to

plotters/src/style/font/ttf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl FontExt {
8383
};
8484
let face = unsafe {
8585
std::mem::transmute::<_, Option<Face<'static>>>(
86-
ttf_parser::Face::from_slice(data, idx).ok(),
86+
ttf_parser::Face::parse(data, idx).ok(),
8787
)
8888
};
8989
Self { inner: font, face }

0 commit comments

Comments
 (0)