diff options
| author | Kenichi Handa | 2009-02-18 02:44:27 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-02-18 02:44:27 +0000 |
| commit | e38b9ee91e8985876307033f24b862247ec03be9 (patch) | |
| tree | 9e35ed148d1876d84e96f7cefef85346b1690312 /src | |
| parent | c423eccad43749a281ad3bbcb085ea072ffab005 (diff) | |
| download | emacs-e38b9ee91e8985876307033f24b862247ec03be9.tar.gz emacs-e38b9ee91e8985876307033f24b862247ec03be9.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/src/font.h b/src/font.h index fb66c167efe..476944c9e42 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -508,15 +508,35 @@ struct font_driver | |||
| 508 | Lisp_Object (*get_cache) P_ ((FRAME_PTR F)); | 508 | Lisp_Object (*get_cache) P_ ((FRAME_PTR F)); |
| 509 | 509 | ||
| 510 | /* List fonts exactly matching with FONT_SPEC on FRAME. The value | 510 | /* List fonts exactly matching with FONT_SPEC on FRAME. The value |
| 511 | is a list of font-entities. It is assured that the properties | 511 | is a list of font-entities. The font properties to be considered |
| 512 | WEIGHT to AVGWIDTH are all nil (i.e. not specified) in FONT_SPEC. | 512 | are: :foundly, :family, :adstyle, :registry, :script, :lang, and |
| 513 | :otf. See the function `font-spec' for their meanings. Note | ||
| 514 | that the last three properties are stored in FONT_EXTRA_INDEX | ||
| 515 | slot of FONT_SPEC. | ||
| 516 | |||
| 517 | The returned value is a list of font-entities. Each font-entity | ||
| 518 | has :type property whose value is the same as the above `type'. | ||
| 519 | It also has these properties if they are available from the | ||
| 520 | corresponding font; :foundry, :family, :adstyle, :registry, | ||
| 521 | :weight, :slant, :width, :size, :dpi, :spacing, :avgwidth. If | ||
| 522 | the font is scalable, :size and :avgwidth must be 0. | ||
| 523 | |||
| 524 | The `open' method of the same font-backend is called with one of | ||
| 525 | the returned font-entities. If the backend needs additional | ||
| 526 | information to be used in `open' method, this method can add any | ||
| 527 | Lispy value by the property :font-entity to the entities. | ||
| 528 | |||
| 513 | This and the following `match' are the only APIs that allocate | 529 | This and the following `match' are the only APIs that allocate |
| 514 | font-entities. */ | 530 | font-entities. */ |
| 515 | Lisp_Object (*list) P_ ((Lisp_Object frame, Lisp_Object font_spec)); | 531 | Lisp_Object (*list) P_ ((Lisp_Object frame, Lisp_Object font_spec)); |
| 516 | 532 | ||
| 517 | /* Return a font entity most closely maching with FONT_SPEC on | 533 | /* Return a font-entity most closely maching with FONT_SPEC on |
| 518 | FRAME. The closeness is detemined by the font backend, thus | 534 | FRAME. Which font property to consider, and how to calculate the |
| 519 | `face-font-selection-order' is ignored here. */ | 535 | closeness is detemined by the font backend, thus |
| 536 | `face-font-selection-order' is ignored here. | ||
| 537 | |||
| 538 | The properties that the font-entity has is the same as `list' | ||
| 539 | method. */ | ||
| 520 | Lisp_Object (*match) P_ ((Lisp_Object frame, Lisp_Object font_spec)); | 540 | Lisp_Object (*match) P_ ((Lisp_Object frame, Lisp_Object font_spec)); |
| 521 | 541 | ||
| 522 | /* Optional. | 542 | /* Optional. |