Background:
I have a word processing app that utilizes a set of Custom fonts; there are four fonts in my set: Regular, Italic, Bold, & Bold Italic. They are True Type: Open Type formatted. This has been working great in the store for several months with iOS 5.0 & 5.1.
Note: I'm utilizing CoreText and doing all of my own text processing and rendering.
Issue:
After upgrading to iOS 6, I noticed that all Italic text is now Bold Italic, and any Bold Italic text is now "undefined" (for me that defaults to another font).
I had hoped that it was just an Xcode issue/change, but it's showing up on my shipped build as well.
What I've Tried:
I've double checked that all the parameters being passed into CTFontCreateWithFontDescriptor are the same between versions.
Looked through iOS 6.0 & Xcode 4.5 release notes & checked dev forums.
Removed and re-added Fonts to project
Any assistance or possible places to investigate would be greatly appreciated!
Related
I'm trying desperately to display the colored emoji in VS Code but it's impossible. I am using Windows 7 and the emoji appear in black and white.
I tried the Emoji extension (support for Windows 7) but it's even worse because the emoji disappear.
Isn't there a simple solution to do this? Maybe there is a font problem but my emoji appear in color in Firefox.
Windows 7 does not have colour font support. That was added in Windows 8.1.
Note that Windows 7 is no longer supported by Microsoft, as of January 2020: https://www.microsoft.com/en-US/windows/windows-7-end-of-life-support-information
I'm using the Source Code Pro font, and as of Big Sur, all my text is black, even with the Dark+ theme, and there's no syntax highlighting.
I tried disabling all extensions and starting Code with code --disable-gpu, but neither of these helped.
The solution is to update your Source Code Pro font to the latest release:
Open Font Book, and in the "User" tab, delete Source Code Pro.
Download the latest Source Code Pro release. You probably want the OTF version.
Unpack it, select all .otf file, and open them. Then in Font Book, press "Install".
The reason why it broke seems to be related to how Big Sur handles fonts with SVG tables. This is fixed as of the November 2020 release, whose release notes state:
Removes SVG table to allow for color-coded text in text editing apps. (issue #250)
I offer a team calendar via Google Calendar to our sports club. It contain all match appointments for several teams and sports (like soccer, tennis, dart...).
I put Unicode icons at the beginning of the subject like a dartboard and a house for a dart match at our home location and a car for outside.
Like this: 🎯🏠 DC Flight Control - Team Dart Donkies
On Smartphones the icons appears as a colored image.
In browsers on a Win7 system as a solid black icon.
On my Win10 system also as colored image.
Same Google-Account, same view, same Google-Settings...
Is this a windows depending thing? Anybody can explain?
It's a font-depending thing
Windows 7 was so old and existed long before emojis came into existence and became common, therefore it doesn't have the appropriate font to display the colored emojis. And even if you install some newer fonts then it still can't render the colored characters because its font renderer doesn't support such a new feature. Initial support for color fonts was added since Windows 8.1, but only fonts with COLR/CPAL tables. Other colored font formats were later supported in Windows 10
An update for the Segoe UI Symbol font in Windows 7 and in Windows Server 2008 R2 brought a subset of the monochrome Unicode set to those operating systems. […] Windows 8 and higher supports the full Unicode emoji characters through Microsoft's Segoe UI family of fonts. […] As of Windows 8.1 Preview, Segoe UI Emoji font supplies full-color pictographs
https://en.wikipedia.org/wiki/Emoji#Microsoft_Windows
The same thing occurs on Linux where only a few modern distros have emoji support by default. Ubuntu has only included colored fonts since version 18.04, which means if you use the young 2-year-old Ubuntu 17.10 you'll see the black characters
Some applications like Firefox use their own font renderer and therefore can show colored emojis even on non-supported OSes. For example Firefox can display those characters on Windows 7 and Linux but Chrome and IE can't (not sure if Chrome was updated to support that or not):
Added a built-in Emoji set for operating systems without native Emoji fonts (Windows 8.0 and lower and Linux)
Firefox 50.0 release notes
It's also possible that someone hates colored characters and disable it completely
I have my custom fonts working fine when they are running on the simulator, but is there any way to view custom fonts in the storyboard itself while I'm working? My text doesn't match the size of the default font so I have to keep compiling and running the code and eyeing the correct size by trial and error over and over.
I've seen a few questions hit on this, but it's just bringing up how to upload custom fonts.
You can't do it in Xcode 4, as it limits you to the preloaded fonts. Xcode 3 had the opposite problem (with .xib files anyway) of allowing you to use any font on your Mac, even if it would not be available to your app at runtime.
Hopefully a future version of Xcode will hit the useful middle ground of giving you exactly what it can determine will be available at runtime. This is actually difficult for Apple to do because the storyboards/nibs live in a project (which may have multiple targets) and the fonts exist in the targets. IMO they should let you use any font and add a build-time warning if a storyboard/nib is built into a target that does not have all the required fonts in it.
What may work is to edit the storyboard as text (available by right-clicking) and rewrite the font names in there to your custom font names. If it follows the pattern of other Apple products you will then see the custom fonts but it will "correct" them back to "legal" fonts if you access that element in the inspector. I haven't tried this.
My pragmatic technique is to find a system font which has roughly the same characteristics in terms of character dimensions and leading, and use that in the storyboard for layout purposes.
I installed a custom font however, my app runs on two languages. I noticed that the custom fonts work with English but not with non-English. How can I overcome this?
You need to choose a custom font that includes "glyphs" for all of the special characters and punctuation that are needed for the language you are using. If the custom font you have is missing these extra glyphs, then you can either edit the font in a font editor such as Fontographer to add the missing glyphs (this requires drawing them in or copying parts from other letters), or finding a new version of the same font that includes the glyphs you need.
You can see the missing glyphs by opening a font that has these glyphs in the "Font Book" program included with mac os x. Then you can open your custom font and compare the two to see what's missing.
Also keep in mind that you usually need a custom license from the font owner to include fonts in your application.