diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-12-12 21:41:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-12-12 21:41:51 (GMT) |
commit | a05ac607d720727bc0d3799b7bea7a81e02ea561 (patch) | |
tree | c000d84ecf27d68dcdcbfa954b2d03e0f3566800 /Mac/Modules/fm | |
parent | 608b3fa801303332de71ef6bad696e9a8b7b00f3 (diff) | |
download | cpython-a05ac607d720727bc0d3799b7bea7a81e02ea561.zip cpython-a05ac607d720727bc0d3799b7bea7a81e02ea561.tar.gz cpython-a05ac607d720727bc0d3799b7bea7a81e02ea561.tar.bz2 |
Regenerated with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support.
Diffstat (limited to 'Mac/Modules/fm')
-rw-r--r-- | Mac/Modules/fm/Fmmodule.c | 40 | ||||
-rw-r--r-- | Mac/Modules/fm/fmscan.py | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/Mac/Modules/fm/Fmmodule.c b/Mac/Modules/fm/Fmmodule.c index 469e8d1..1d84a31 100644 --- a/Mac/Modules/fm/Fmmodule.c +++ b/Mac/Modules/fm/Fmmodule.c @@ -336,6 +336,42 @@ static PyObject *Fm_GetAppFont(_self, _args) return _res; } +static PyObject *Fm_SetAntiAliasedTextEnabled(_self, _args) + PyObject *_self; + PyObject *_args; +{ + PyObject *_res = NULL; + OSStatus _err; + Boolean inEnable; + SInt16 inMinFontSize; + if (!PyArg_ParseTuple(_args, "bh", + &inEnable, + &inMinFontSize)) + return NULL; + _err = SetAntiAliasedTextEnabled(inEnable, + inMinFontSize); + if (_err != noErr) return PyMac_Error(_err); + Py_INCREF(Py_None); + _res = Py_None; + return _res; +} + +static PyObject *Fm_IsAntiAliasedTextEnabled(_self, _args) + PyObject *_self; + PyObject *_args; +{ + PyObject *_res = NULL; + Boolean _rv; + SInt16 outMinFontSize; + if (!PyArg_ParseTuple(_args, "")) + return NULL; + _rv = IsAntiAliasedTextEnabled(&outMinFontSize); + _res = Py_BuildValue("bh", + _rv, + outMinFontSize); + return _res; +} + static PyMethodDef Fm_methods[] = { {"InitFonts", (PyCFunction)Fm_InitFonts, 1, "() -> None"}, @@ -371,6 +407,10 @@ static PyMethodDef Fm_methods[] = { "() -> (short _rv)"}, {"GetAppFont", (PyCFunction)Fm_GetAppFont, 1, "() -> (short _rv)"}, + {"SetAntiAliasedTextEnabled", (PyCFunction)Fm_SetAntiAliasedTextEnabled, 1, + "(Boolean inEnable, SInt16 inMinFontSize) -> None"}, + {"IsAntiAliasedTextEnabled", (PyCFunction)Fm_IsAntiAliasedTextEnabled, 1, + "() -> (Boolean _rv, SInt16 outMinFontSize)"}, {NULL, NULL, 0} }; diff --git a/Mac/Modules/fm/fmscan.py b/Mac/Modules/fm/fmscan.py index d111964..b06e9cb 100644 --- a/Mac/Modules/fm/fmscan.py +++ b/Mac/Modules/fm/fmscan.py @@ -42,6 +42,8 @@ class MyScanner(Scanner): return [ "FMInput_ptr", # Not needed for now "FMOutPtr", # Ditto + "void_ptr", # Don't know how to do this right now + "FontInfo", # Ditto ] def makerepairinstructions(self): |