This article was published over a year ago, so please be aware that some content may be out of date.
List All Glyph Names For A Font In Swift
This code snippet will show you how to print a list of all the glphys in a particular font using Swift.
In Swift, you can get a complete list of all the available glyphs for a given font by printing the name for each glyph:
let font = CGFont("Helvetica" as CFString)!
for i in 0..<font.numberOfGlyphs {
print(font.name(for: CGGlyph(i))!)
}
Laravel views allow you to pass data to a view in a number of different ways. In this article, I'll go over four methods and describe the pros and cons for each one.
Apple makes some of the most intuitive software around, but if you're coming from another platform, your first Mac experience can be quite confusing. In this article I'll go through some tips and tricks I wish I'd known when I first started using a Mac way back in 2004.