mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: replace []byte with []u8
This commit is contained in:
parent
0527ac633e
commit
fb192d949b
164 changed files with 533 additions and 533 deletions
|
@ -64,10 +64,10 @@ fn new_ft(c FTConfig) ?&FT {
|
|||
}
|
||||
|
||||
mut normal_path := c.font_path
|
||||
mut bytes := []byte{}
|
||||
mut bytes := []u8{}
|
||||
$if android {
|
||||
// First try any filesystem paths
|
||||
bytes = os.read_bytes(c.font_path) or { []byte{} }
|
||||
bytes = os.read_bytes(c.font_path) or { []u8{} }
|
||||
if bytes.len == 0 {
|
||||
// ... then try the APK asset path
|
||||
bytes = os.read_apk_asset(c.font_path) or {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue