AriZuu / ttf2ugui

Simple utility to convert TTF fonts into uGUI bitmap fonts.
111 stars 53 forks source link

Error ew faceerr 1 #11

Closed bimaAgs closed 1 year ago

bimaAgs commented 1 year ago

hi @deividAlfa When converting, an error like this always appears. What's wrong with me?

image

deividAlfa commented 1 year ago

Hello, I enabled issues tab in my fork.

I have no idea, maybe you're using too new Linux os? I've had lots of issues since 2020, so my compiling VM is still in Ubuntu 20.

AriZuu commented 1 year ago

I'd say that there is something wrong with your font file. Haven't seen that error before.

bimaAgs commented 1 year ago

Hello, I enabled issues tab in my fork.

I have no idea, maybe you're using too new Linux os? I've had lots of issues since 2020, so my compiling VM is still in Ubuntu 20.

i am using cygwin in windows & venture os on mac still same error "ew faceer 1"

bimaAgs commented 1 year ago

I'd say that there is something wrong with your font file. Haven't seen that error before.

iam using default font from windows, does it need the location address the font or just call it arial.ttf?

iam find this error in ttf2ugui.c

image

AriZuu commented 1 year ago

--font argument wants a filename. If .ttf file is not in current directory, you must give full path to it. I have never used windows font files, so I don't really know if they are compatible with library.

AriZuu commented 1 year ago

Look at freetype error codes here: https://freetype.org/freetype2/docs/reference/ft2-error_code_values.html

Error code 1 means "cannot open resource", ie. your arial.ttf is not found.

deividAlfa commented 1 year ago

Of course, the ttf file must be in the same folder, it won't magically take it from Windows. Otherwise specify the full path, i.e.:

--font=/cygdrive/C/Windows/Fonts/Arial.ttf

But I would simply copy the ttf there for easiness, in fact it's the only way I've used it.

AriZuu commented 1 year ago

So this is now all solved then ?

bimaAgs commented 1 year ago

So this is now all solved then ?

yes, this was solved by adding ' ' sign between the fonts like 'Seven Segment.ttf' and finally the font was converted,

image

thank you for clarifying the problem I was facing *Note i am using cygwin in windows and the library can work well

AriZuu commented 1 year ago

Ok. I'm closing this now.