Custom fonts FMX ios not working Delphi 11 - ios

With this Embarcadero tutorial on custom fonts we were enabled to use custom fonts on iOS and Android:
https://docwiki.embarcadero.com/RADStudio/Rio/en/Creating_an_iOS_App#Using_Custom_Fonts_in_iOS_Apps
With new projects we cannot get it to work anymore in iOS, since Delphi 11 (or maybe 10.4). It’s only working on Android.
Does anyone know why the fonts are not picked up/ embedded on iOS?

I have created a sample application showcasing the use of a custom font on an iOS application. Please, the code is available here. It is important to bring up here the need to add the custom font file to the project deployment list:
The mentioned sample application contains a combo box to list all the font family names that are available as value for the TFont.Family property. I have added the SCRIPTBL.ttf font file to the application and it causes the Script MT Bold item to be added to the mentioned combo box.

Related

How do I preserve the Font/Color of a Swift document generated via Xcode in a custom iOS/MacOS Application?

Scenario: a rudimentary iOS/MacOS application generated by Xcode 'document' template with the ability to read/write .swift file.
Purpose: to have a Swift-Language source-code viewer for both Mac & iOS for purview only.
I merely would like to have a simple iOS Application that I can use to store Swift code snippets for study on-the-go (mobile).
I'm able to view .swift files but I lost the font/colors used to display within Xcode.
Question: how do I view the original font/color text? ...or
Must I have to convert the entire source-code into an AttributedText?
Example: I want to preserve the code as is shown below:

How to use custom fonts in a property list file?

I use a third-party SDK in my iOS app which requires me to define the fonts I wish to use in a pre-defined .plist file. I have been using Lato-Regular all throughout the app but it seems I cannot use the same in a property list file for some reason. Is there any to achieve this?
P.S. I have checked and rechecked for the name of the font so that's not the problem.

Using Helvetica Neue in WatchKit not working, other custom fonts work

I am wanting to use Helvetica Neue Ultra Light in my Watchkit app. I have followed all of the instructions for adding a custom font (added to Extension bundle and added in Info.plist for Extension and Watchkit app), but NOTHING is working and it will never get used.
Really strange thing is, other ttf fonts that I have added DO work, it seems to just be some strange issue with Helvetica.
Where is Helvetica, and why can't I add it?
Edit: To clear things up and prevent what people think might be obvious answers.
Watchkit only includes the system font (San Francisco), it doesn't
expose all of the fonts that iOS has. (Ref:
devforums.apple.com/message/1096179#1096179) THIS is why I am trying
to include Helvetica.
Option 1
I had the same issue. I fixed it by including the - character between the font name and the name of its weight. In some ways, Xcode could recognize the font.
Try changing HelveticaNeueUltraLight.ttf into HelveticaNeue-UltraLight.ttf wherever possible (info.plist file and in the project folder).
Option 2
Open up the FontBook that comes included within your Mac. Install the font if you haven't already and look closely at the PostScript name of the font. If it differs from the name you are currently using in Xcode, then change it.
Option 3
If you can't still get this working, download the same font from another source.

iOS equivalent to a stylesheet?

HTML has CSS styles e.g. class="styleName"
Windows8/XAML has static style resources e.g. Style="{StaticResource styleName}"
Android has style tags e.g. style="#style/styleName"
iOS has ???
I'm using the interface builder for iOS in Xcode, how do I start to build up a style set or equivalent to styles? I want the ability to apply 'styles' to elements and then if I update that style's properties, the changes are applied to all elements that have been given that style. Is this possible in iOS development? Can someone please enlighten me as to how this is achieved or the equivalent please in iOS development. I'm very new to iOS development as you can see.
Is it more related to skins or themes? I don't have a clue.
There's Appearence. You often see this being used for colours, but it also does fonts, sizes, and a few other things. Here's another good article from a well known source.
Additionally, a common way to style/'skin' is by having different sets of background/button/... images.
You can also style by parameterizing drawing code. Have a look at the fabulous tool PaintCode.
Then, some companies do (part of the) UI in HTML/JavaScript.
Another thing to mention in this context is iOS' Auto Layout
You can do this with MarkupKit. See the section in the README entitled "Template Properties".
There isn't a good API in UIKit for this, unfortunately, but there are third party solutions with various tradeoffs.
I created a library that uses style classes, like CSS, which you can define in code, or inside a JSON file, and then apply to views in your app. As an extra benefit, the library uses #IBDesignable to live render your styles inside Storyboards without having to compile the app first to see the results.
https://github.com/daniel-hall/Stylish

Have any libraries implemented UITextInputDelegate for Rich Text editing on the iPad?

I'm looking for a rich text editor for the iPad. It appears that this was nearly impossible until iPhone OS 3.2 which included the UITextInput protocol, but that still leaves developers a long way from a functioning editor.
The OMNI Framework has started on a text editor (search google for 'omnigroup texteditor'), but it's more of a proof-of-concept.
Does anyone know of an open source or paid library with a complete implementation of UITextInputDelegate?
https://github.com/omnigroup/OmniGroup/tree/master/Frameworks/OmniUI/iPad/Examples/TextEditor/

Resources