Skip to content

Commit c6e308d

Browse files
committed
fix
1 parent d2b96ae commit c6e308d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

meme_generator_memes/src/memes/pjsk.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct Options {
191191
pub number: Option<i32>,
192192

193193
/// 字体大小
194-
#[option(short, long, minimum = 20, maximum = 50)]
194+
#[option(short, long, default = 50, minimum = 20, maximum = 100)]
195195
pub size: Option<i32>,
196196

197197
/// 文字旋转角度
@@ -238,7 +238,7 @@ fn pjsk(_: Vec<InputImage>, texts: Vec<String>, options: Options) -> Result<Vec<
238238
))?;
239239
let color = color_from_hex_code(character.color);
240240

241-
let font_size = options.size.unwrap_or(50);
241+
let font_size = options.size.unwrap();
242242
let text2image = Text2Image::from_text(
243243
text,
244244
font_size as f32,
@@ -288,5 +288,5 @@ register_meme!(
288288
.as_slice(),
289289
tags = MemeTags::project_sekai(),
290290
date_created = local_date(2024, 12, 19),
291-
date_modified = local_date(2024, 12, 19),
291+
date_modified = local_date(2025, 1, 18),
292292
);

resources/fonts/SSFangTangTi.ttf

2.23 MB
Binary file not shown.

0 commit comments

Comments
 (0)