mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
wallet: change font from IBM plex mono light to the regular version
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
default: fonts
|
||||
cargo lrun
|
||||
|
||||
ibm-plex-mono-light.otf:
|
||||
wget https://codeberg.org/darkrenaissance/darkfi/raw/branch/data/ibm-plex-mono-light.otf
|
||||
ibm-plex-mono-regular.otf:
|
||||
wget https://codeberg.org/darkrenaissance/darkfi/raw/branch/data/ibm-plex-mono-regular.otf
|
||||
|
||||
NotoColorEmoji.ttf:
|
||||
wget https://codeberg.org/darkrenaissance/darkfi/raw/branch/data/NotoColorEmoji.ttf
|
||||
|
||||
fonts: ibm-plex-mono-light.otf NotoColorEmoji.ttf
|
||||
fonts: ibm-plex-mono-regular.otf NotoColorEmoji.ttf
|
||||
|
||||
android: fonts
|
||||
podman run -v $(shell pwd)/../../:/root/darkfi -w /root/darkfi/bin/darkwallet/ -t apk cargo quad-apk build
|
||||
|
||||
@@ -147,7 +147,7 @@ impl TextShaper {
|
||||
|
||||
let mut faces = vec![];
|
||||
|
||||
let font_data = include_bytes!("../../ibm-plex-mono-light.otf") as &[u8];
|
||||
let font_data = include_bytes!("../../ibm-plex-mono-regular.otf") as &[u8];
|
||||
let ft_face = ftlib.new_memory_face2(font_data, 0).unwrap();
|
||||
faces.push(ft_face);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user