iOS Question Problem with Customfonts

Discussion in 'iOS Questions' started by Filippo, Jun 29, 2015.

  1. Filippo

    Filippo Expert Licensed User

    Hi,

    can someone tell me why the example of Erel with my custom font(digirtu_.ttf) does not work?

    Does my font have a certain format?
     

    Attached Files:

  2. tufanv

    tufanv Expert Licensed User

    did you try removing the _ from the name. Just an idea :)
     
  3. Filippo

    Filippo Expert Licensed User

    Thanks, but that's not the solution.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Works fine here:
    upload_2015-6-30_8-3-32.png

    Can you post your code?

    It should be:
    Code:
    Button1.CustomLabel.Font = Font.CreateNew2("Digital Readout Thick Upright"20)
     
  5. Filippo

    Filippo Expert Licensed User

    Hi Erel,

    I know that work with other fonts.
    The question is why it does not work with my font(digirtu_.ttf). :(
    Should my font will be converted? If so, with what?

    I use exactly your example.
     
  6. Filippo

    Filippo Expert Licensed User

    I believe I have found the error.
    I always write so:
    Code:
    Button1.CustomLabel.Font = Font.CreateNew2("digirtu_"20)
    but I should write so: :oops:
    Code:
    Button1.CustomLabel.Font = Font.CreateNew2("Digital Readout Thick Upright"20)
     
Loading...