Post not yet marked as solved
Hello,
I have previous versions on SF fonts installed on my Mac, including SF Pro Display. I recently downloaded the updated SF Pro, but it does not show up in Figma. I can see it and use it fine in Sketch. Does anyone know how to resolve this issue so I can access it in Figma?
Post not yet marked as solved
Hey, Inside the app I'm making user has a option to create and export PDF file. I read the license, but I'm still not sure if I can use SF font and SF symbols for that use case.
Post not yet marked as solved
Hi, I'm a developer working on a plugin that maps the tracking values based on font size in Figma (design tool).
I want to support the New York font, however I realize there are 4 optical sizes: Small, Medium, Large, and Extra Large. Is there a documentation that outlines which font sizes are mapped to which variation when rendered on iOS?
I'm assuming it's similar to how SF Pro Display is used at size 20 instead of SF Pro Text. Knowing the mapping will help designers see a more accurate representation of the text in Figma.
Thanks.
Post not yet marked as solved
Each MacOS has over the last few years has made it harder and harder to parse down the unnecessary fonts in the System folder to the point where Big Sur has no work around to remove any of them. While I can recognize that the trade off has been a more secure operating system which I'm certainly not suggesting Apple doesn't continue improving, really would like control back over these system fonts in some way.
Some may think this is no big deal, but as a designer who is in fonts every day for multiple clients and using font management software to activate and deactivate fonts regularly, having a terribly long list of fonts always present hampers workflow.
Ideally via Terminal there would be a way to unlock functionality in the Font Book app Apple pre-loads to unlock the disable function under system fonts. I know which fonts I need to have my system run so maybe we can get a way to control these back some day??
Post not yet marked as solved
I am using GeometryReader to calculate the size of font to use to fit several lines of text, however it is always too big. What can be wrong with my calculation?
Here's a simply Playground
import SwiftUI
import PlaygroundSupport
struct MainView : View {
var body: some View {
VStack {
SomeView()
.frame(width: 508.0, height: 246.5)
}
}
}
struct SomeView: View {
let newData = ["1", "2", "3", "4", "5", "6", "7", "8"]
var lines: Int { newData.count }
var body: some View {
GeometryReader { geometry in
VStack(alignment: .leading, spacing: 0) {
ForEach(0..<lines) { idx in
Text(newData[idx])
.padding(0)
}
}
.font(.system(size: geometry.size.height / CGFloat(lines)))
.onAppear {
print(geometry.size)
print(lines)
print(geometry.size.height / CGFloat(lines))
}
}
}
}
PlaygroundPage.current.setLiveView(MainView())
This gives me this result which I need to show all 8 lines:
The GeometryReader correctly reports the height of the box to be 246.5 and the number of lines to be 8 which results in a 30.8125 font size.
It seems the font size needs some additional padding but how do I calculate this?
I want to be able to supply an unknown amount of data and have it fill the box. (Well I am actually using a LazyVGrid which is suffering the same issue).
Post not yet marked as solved
I want to use the "SF Pro Text" font in my app. It works fine when I build my app on my main computer running macOS11 Big Sur, but I have a 2nd partition to run macOS Monterey, and it doesn't seem to be available there at all, whether through Interface Builder or through code (using NSFontManager).
Using this returns nil on my Monterey partition:
NSFont* regularFont = [[NSFontManager sharedFontManager] fontWithFamily:@"SF Pro Text" traits:NSFontWeightRegular weight:5 size: 16.0];
Maybe I'm missing something here ... should I have to install the font manually? I thought the SF Font is a 'system font', so it would be available on all Macs?
I'm investigating some font/typography issues in a creative application. I am hoping for some information from Apple developers who know how font activation works in Core Text, and how/whether auto-activation is still supported.
I'm running on Big Sur in an Obj-C Cocoa app. In applicationDidFinishLaunching the app calls
CTFontManagerSetAutoActivationSetting(NULL, kCTFontManagerAutoActivationEnabled);
After this, what is the correct API to request auto-activation of a font that may not be active but could be activated, e.g. by a third-party font manager?
I have tried using CTFontCreateWithNameAndOptions. For options, I see there is an CTFontOption value
kCTFontOptionsPreventAutoActivation - I assume that as long as I don't set this option, the call will attempt auto-activation.
However, I don't see any auto-activation resulting, either from the third-party font manager or the OS. Instead CTFontCreateWithNameAndOptions always returns a substitute font (Helvetica).
The font I am attempting to auto-activate is an OTF. It is stored in a third-party font manager, and I also have copies of it on the desktop. I have also tried having it present / disabled in FontBook, which also does not auto-activate it in this case. I've also cleaned font caches after making changes.
How is the kCTFontManagerAutoActivationEnabled supposed to work in Big Sur? Is there a different Core Text call used to auto-activate a font, or is this behavior no longer supported?
Thanks!
Post not yet marked as solved
New iOS persian font is so ugly, unreadable at the edges of some messages and is considered as a font that is not suitable for everday typing and reading.
How can i restore it to the ios 14 version font?
What is the process of choosing a new font? Do they ask native focus groups and professionals about the font?
Post not yet marked as solved
Hello Developers and members..
In the iPhone system, whether the previous or the new 15.1 we are forced to use one font, specifically for the Arabic language.. Why are we not allowed to download a font from the Internet that suits our Arab taste and make it for the iPhone and the extension of the font is from the famous fonts such as ttf ..
There is a jailbreak method, but I don't want it.. I want an official method from Apple..
In particular, after the update to the system 15.1, the appearance of the Arab threat is very horrific
thank you
Post not yet marked as solved
Hi
can my App now install fonts system wide in iOS and iPadOS ? Is there any helpful links ?
Kindest Regards
When I run SF Symbols, I get a "Fonts Mismatch" error. It claims that newer versions of all the SF-Pro-[Display/Rounded/etc.] family (save the italics ones) are available. The link it sends me to apparently still has the older versions. I've deleted the 'older' versions of the font files and then run the SF-Pro font installer off the downloaded disk image; error just continues to appear.
Post not yet marked as solved
Here's a simple demo. I run it on macOS 12.1, compiled with Xcode 13.2.
struct ContentView: View {
var body: some View {
VStack {
Text("ee")
Text("eé")
Text("e\u{E9}") // "e with acute"
Text("ee\u{301}") // "combining acute"
}.font(.custom("Avenir", fixedSize: 18))
.padding(20)
}
}
In the 4rd one, the "e" is rendered in the wrong size/font. Screenshot:
Other fonts do not have the problem. For example, "Avenir Next" and "Helvetica".
Is there a way (in code) to tell which fonts can handle combining chars?
Is this a bug?
I notice the same thing happens when I use Core Text to draw the strings at a low level. So it's not just SwiftUI.
In TextEdit, if have Avenir font, type "option-e" + "e" I get a nice letter. Maybe TextEdit is doing what Xcode did in the second line, and using the "e with acute" unicode character.
Post not yet marked as solved
When I receive my ''automatic abc'' mail....after I have sent an email....the font has changed?.....I use Century Gothic as a standard font for all emails and documents....yet it is changed for some reason? I am running IOS BETA 12.3 on Monterey
Post not yet marked as solved
My language learning app needs to support a lot of languages and text paragraphs containing 2 different languages are not uncommon. (e.g. German grammar explained in Arabic)
Now, I want to integrate a custom font to make the design unique and consistent across multiple platforms (iOS, Android, Web), but there is basically no single Font that supports all languages.
The question is:
What is the recommended way of implementing that on the code level in SwiftUI?
If I just hardcode:
.font(Font.custom("myFont", size: 16))
then I guess it is not gonna work if the text contains a language not supported by my custom font.
The Apple's default font seems to handle all languages perfectly, even if they are mixed together and I'd like to have something like that, but with a custom font.
Specifically, I'd like to integrate FF Din font:
https://www.myfonts.com/fonts/fontfont/ff-din/
with supported Languages: Western Europe, Vietnamese, Central/Eastern Europe, Baltic, Turkish, Romanian, Cyrillic, Greek
So I am wondering what I would do about Chinese, Arabic, etc.
Thanks
How can I declare a variable to change the font?
The compiler indicates that it must be type CGFont.
so:
var typeFont: CGFont //but I don't know how to initialize
How is the correct way to give an initial value?
Thanks
Post not yet marked as solved
I have an App in TestFlight that looks wrong because the fonts are too large. The problem shows up only on one tester's iPhone 13 Pro. If I look at the app in the Simulator, it looks as it should. The App in an earlier version looks fine on the user's phone downloaded from the App store. The App also looks fine for a TestFlight user using an iPhone 12. On the problem phone, the font, Avenir Next Condensed, works fine, but it is just too large, so a text heading becomes garbled. Any ideas would be appreciated.
https://www.bserg.org/Screen%20Shot%202022-03-24%20at%209.29.32%20AM.png
TestFlight on left, Simulator on right.
Post not yet marked as solved
Are SF Symbols and other fonts provided available for commercial use? For example, in a marketing website.
Post not yet marked as solved
San Francisco and other UI fonts do not seem to be optimized for Ticuna, as some characters display incorrectly with extra spacing. An example is attached, the issue is specifically between the saltillo and other characters. Is it possible to substitute out the font for one with the correct display for Ticura?
This does not seem to be an app specific issue but a font issue. This is a universal problem in all applications regardless of region or language.
Is there a way to add custom font for Swift Playground App, since I can't add a Info.plist file?
Post not yet marked as solved
im currently developing this:
example: visual wifi : directory text overview inside wifi.. more structure (advanced users);