| 1 |
/****************************************************************************\ |
| 2 |
Part of the XeTeX typesetting system |
| 3 |
Copyright (c) 1994-2008 by SIL International |
| 4 |
Copyright (c) 2009 by Jonathan Kew |
| 5 |
Copyright (c) 2012, 2013 by Jiang Jiang |
| 6 |
|
| 7 |
SIL Author(s): Jonathan Kew |
| 8 |
|
| 9 |
Permission is hereby granted, free of charge, to any person obtaining |
| 10 |
a copy of this software and associated documentation files (the |
| 11 |
"Software"), to deal in the Software without restriction, including |
| 12 |
without limitation the rights to use, copy, modify, merge, publish, |
| 13 |
distribute, sublicense, and/or sell copies of the Software, and to |
| 14 |
permit persons to whom the Software is furnished to do so, subject to |
| 15 |
the following conditions: |
| 16 |
|
| 17 |
The above copyright notice and this permission notice shall be |
| 18 |
included in all copies or substantial portions of the Software. |
| 19 |
|
| 20 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 21 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 22 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 23 |
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE |
| 24 |
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 25 |
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 26 |
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 27 |
|
| 28 |
Except as contained in this notice, the name of the copyright holders |
| 29 |
shall not be used in advertising or otherwise to promote the sale, |
| 30 |
use or other dealings in this Software without prior written |
| 31 |
authorization from the copyright holders. |
| 32 |
\****************************************************************************/ |
| 33 |
|
| 34 |
/* |
| 35 |
* file name: XeTeXFontInst_Mac.h |
| 36 |
* |
| 37 |
* created on: 2005-10-22 |
| 38 |
* created by: Jonathan Kew |
| 39 |
*/ |
| 40 |
|
| 41 |
|
| 42 |
#ifndef __XeTeXFontInst_Mac_H |
| 43 |
#define __XeTeXFontInst_Mac_H |
| 44 |
|
| 45 |
#include "XeTeXFontInst.h" |
| 46 |
|
| 47 |
#include <ApplicationServices/ApplicationServices.h> |
| 48 |
|
| 49 |
class XeTeXFontInst_Mac : public XeTeXFontInst |
| 50 |
{ |
| 51 |
protected: |
| 52 |
CTFontDescriptorRef m_descriptor; |
| 53 |
CTFontRef m_fontRef; |
| 54 |
|
| 55 |
public: |
| 56 |
XeTeXFontInst_Mac(CTFontDescriptorRef descriptor, float pointSize, int &status); |
| 57 |
|
| 58 |
virtual ~XeTeXFontInst_Mac(); |
| 59 |
|
| 60 |
virtual void initialize(int &status); |
| 61 |
}; |
| 62 |
|
| 63 |
#endif |