Skip to content

Commit

Permalink
refactor: change font and format of reference number
Browse files Browse the repository at this point in the history
Replace "RethinkSans-ExtraBold.ttf" with "LondrinaSolid-Black.ttf" and reformat the reference number. This change is made for better visual appeal and readability.
  • Loading branch information
nekofar committed Jun 16, 2024
1 parent 9fc0951 commit 1b38208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ pub fn create_og_image(id: u64, title: &str, description: &str, platform: Platfo
);

let reference_number_formatted = format!(
"/l_text:Prop%20{}_56:{},{},c_fit,w_1050",
utf8_percent_encode("RethinkSans-ExtraBold.ttf", NON_ALPHANUMERIC),
id,
"/l_text:{}_56:{},{},c_fit,w_1050",
utf8_percent_encode("LondrinaSolid-Black.ttf", NON_ALPHANUMERIC),
utf8_percent_encode(format!("Prop {}", id).as_str(), NON_ALPHANUMERIC),
&foreground_color
);

Expand Down

0 comments on commit 1b38208

Please sign in to comment.