Embedding a font within dyslexic assisting app

https://github.com/sammytaggart/Help-with-OCR

I am a Design teacher in Belfast and I have a 12 year old student who has designed a font for dyslexic readers.

We have bodged an app by snipping open source stuff from across the web. we have a fairly functional app, Where:

  1. User takes pic
  2. Selects pic
  3. OCRs the text 4 Presents text in a font of choice (dyslexia.ttf)

I have be able to change the font to any of the custom fonts, but not to the one of choice. I am very unsure of the code (not a clue)

this has been an app to add on to the design of the students font (with the font being the main feature....can anyone PLEASE shed some light? I have tried with and without.ttf, I, to my knowledge am sure all is embedded and bundled etc...to no avail.

all is viewable at the above link on github I have googled it to death And following tweak after tweak, I am done...apologies for the request only, but this is not my area of expertise at all, but will add the icing on the cake to my students project.

Many thanks Sammy

Answers


This works as of iOS 3.2, and is pretty straightforward. You need to follow these steps:

  1. Copy the TTF file into the Resources folder in Xcode, so it gets copy inside the app bundle when you compile the app.
  2. Edit your Info.plist file and add the following key:

    <key>UIAppFonts</key>
    <array>
        <string>dyslexia.ttf</string>
    </array>
    
  3. From within the app, you can instantiate a UIFont by calling:

    [UIFont fontWithName:@"dyslexia" size:12];
    

    and set that to the font property of a UILabel for instance.

One important thing to note, though: the name of the font you pass to + fontWithName: is not necessarily the name of the ttf file, but the name of the font within the font metadata. Make sure you are using the proper name there.


Need Your Help

Sending Email through Intent doesn't seem to work

android android-intent

I'm very new to Android and was trying to do an app which sends an e-mail. I've gone through few tutorials online and was trying to do this through Intent but it doesn't seem to work on the Emulato...

Netbeans, jsp:include

jsf netbeans include

I'm using JSF in NetBeans. All I want to do is to include a page within another page. But whatever I tried, and when I run the main page, I get no error but I can't see my included page in a main p...