diff options
| author | Mattias EngdegÄrd | 2019-07-09 16:44:24 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-07-09 17:34:44 +0200 |
| commit | ec723406476c818ab8f1da926e70668e36206289 (patch) | |
| tree | 0ef190b2ba7ec005b361bdc446018d081bb07d6b /src/font.h | |
| parent | 1a1b5f9802577a09317dd036ccefba4222702f4f (diff) | |
| download | emacs-ec723406476c818ab8f1da926e70668e36206289.tar.gz emacs-ec723406476c818ab8f1da926e70668e36206289.zip | |
Rename font_driver member open -> open_font
* src/xftfont.c (xftfont_driver):
* src/xfont.c (xfont_driver):
* src/nsfont.m (nsfont_driver):
* src/macfont.m (macfont_driver):
* src/ftxfont.c (ftxfont_driver):
* src/ftfont.c (ftfont_driver):
* src/ftcrfont.c (ftcrfont_driver):
* src/font.h (struct font_driver):
* src/font.c (font_open_entity):
Rename `open' member to `open_font', to avoid clash with preprocessor
define of `open' in lib/fcntl.h and nt/inc/ms-w32.h. Remove earlier
#undef hack.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/font.h b/src/font.h index 3387878ad30..e59fc1d1b25 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -58,7 +58,7 @@ INLINE_HEADER_BEGIN | |||
| 58 | Lisp object encapsulating "struct font". This corresponds to | 58 | Lisp object encapsulating "struct font". This corresponds to |
| 59 | an opened font. | 59 | an opened font. |
| 60 | 60 | ||
| 61 | Note: Only the method `open' of a font-driver can create this | 61 | Note: Only the method `open_font' of a font-driver can create this |
| 62 | object, and it should never be modified by Lisp. */ | 62 | object, and it should never be modified by Lisp. */ |
| 63 | 63 | ||
| 64 | 64 | ||
| @@ -594,9 +594,9 @@ struct font_driver | |||
| 594 | :weight, :slant, :width, :size, :dpi, :spacing, :avgwidth. If | 594 | :weight, :slant, :width, :size, :dpi, :spacing, :avgwidth. If |
| 595 | the font is scalable, :size and :avgwidth must be 0. | 595 | the font is scalable, :size and :avgwidth must be 0. |
| 596 | 596 | ||
| 597 | The `open' method of the same font-backend is called with one of | 597 | The `open_font' method of the same font-backend is called with one of |
| 598 | the returned font-entities. If the backend needs additional | 598 | the returned font-entities. If the backend needs additional |
| 599 | information to be used in `open' method, this method can add any | 599 | information to be used in `open_font' method, this method can add any |
| 600 | Lispy value using the property :font-entity to the entities. | 600 | Lispy value using the property :font-entity to the entities. |
| 601 | 601 | ||
| 602 | This and the following `match' are the only APIs that allocate | 602 | This and the following `match' are the only APIs that allocate |
| @@ -623,8 +623,8 @@ struct font_driver | |||
| 623 | 623 | ||
| 624 | /* Open a font specified by FONT_ENTITY on frame F. If the font is | 624 | /* Open a font specified by FONT_ENTITY on frame F. If the font is |
| 625 | scalable, open it with PIXEL_SIZE. */ | 625 | scalable, open it with PIXEL_SIZE. */ |
| 626 | Lisp_Object (*open) (struct frame *f, Lisp_Object font_entity, | 626 | Lisp_Object (*open_font) (struct frame *f, Lisp_Object font_entity, |
| 627 | int pixel_size); | 627 | int pixel_size); |
| 628 | 628 | ||
| 629 | /* Close FONT. NOTE: this can be called by GC. */ | 629 | /* Close FONT. NOTE: this can be called by GC. */ |
| 630 | void (*close) (struct font *font); | 630 | void (*close) (struct font *font); |