This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% | |
% BEGEIN additional packages and macros | |
% | |
% draft only | |
\pagestyle{plain} | |
% end | |
\newenvironment{syntax}{\setlength{\baselineskip}{12pt} \begin{quote} \flushleft \ttfamily }{\end{quote}} | |
\newcommand{\lb}[0]{\texttt{\symbol{"7B}}}%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <CoreText/CTFont.h> | |
#include <CoreText/CTFontCollection.h> | |
#include <CoreFoundation/CFString.h> | |
#include <CoreFoundation/CFBase.h> | |
void callBack(const void *value, void *context) { | |
CTFontDescriptorRef pDesc = static_cast<CTFontDescriptorRef>(value); | |
CFStringRef pFamilyName = (CFStringRef)CTFontDescriptorCopyAttribute(pDesc, kCTFontFamilyNameAttribute); |