You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`.text()`](#text)| one |no| no |no | fixed |Inserts a single-line text string with a precise location on the base line of the font.|
10
-
|[`.cell()`](#cell)| one |yes|no |yes |yes |Inserts a single-line text string within the boundaries of a given box, optionally with background and border.|
11
-
|[`.multi_cell()`](#multi_cell)| several |yes|no |yes |yes |Inserts a multi-line text string within the boundaries of a given box, optionally with background, border and padding.|
12
-
|[`.write()`](#write)| several |no|no |yes |auto |Inserts a multi-line text string within the boundaries of the page margins, starting at the current x/y location (typically the end of the last inserted text).|
13
-
| [`.write_html()`](#write_html) | several | no | yes | yes | auto | An extension to `.write()`, with additional parsing of basic HTML tags.
| [`.text()`](#text) | one | none | no | Inserts a single-line text string with a precise location on the base line of the font.
10
+
| [`.cell()`](#cell) | one | Markdown | yes | Inserts a single-line text string within the boundaries of a given box, optionally with background and border.
11
+
| [`.multi_cell()`](#multi_cell) | several | Markdown | yes | Inserts a multi-line text string within the boundaries of a given box, optionally with background, border and padding.
12
+
| [`.write()`](#write) | several | none | yes | Inserts a multi-line text string within the boundaries of the page margins, starting at the current x/y location (typically the end of the last inserted text).
13
+
| [`.write_html()`](#write_html) | several | HTML | yes | auto | An extension to `.write()`, with additional parsing of basic HTML tags.
14
14
15
15
## Flowable Text Regions
16
16
@@ -19,14 +19,16 @@ The currently implemented type of text regions is [text_columns()](TextColumns.h
19
19
20
20
## Typography and Language Specific Concepts
21
21
### Supported Features
22
-
With supporting Unicode fonts, fpdf2 should handle the following text shaping features correctly. More details can be found in [TextShaping](TextShaping.html).
22
+
With supporting Unicode fonts, `fpdf2` should handle the following text shaping features correctly. More details can be found in [TextShaping](TextShaping.md).
23
+
23
24
* Automatic ligatures / glyph substitution - Some writing systems (eg. most Indic scripts such as Devaganari, Tamil, Kannada) frequently combine a number of written characters into a single glyph. In latin script, "ff", "fi", "ft", "st" and others are often combined. In programming fonts "<=", "++" "!=" etc. may be combined into more compact representations.
24
25
* Special diacritics that use separate code points (eg. in Diné Bizaad, Hebrew) will be placed in the correct location relative to their base character.
25
26
* Kerning, where the spacing between characters varies depending on their combination (eg. moving the succeeding lowercase character closer to an uppercase "T".
26
27
* Left-to-right and right-to-left text formatting (the latter most prominently in Arabic and Hebrew).
27
28
28
29
### Limitations
29
-
There are a few advanced typesetting features that fpdf doesn't currently support.
30
+
There are a few advanced typesetting features that `fpdf2` doesn't currently support:
31
+
30
32
* Contextual forms - In some writing systems (eg. Arabic, Mongolian, etc.), characters may take a different shape, depending on whether they appear at the beginning, in the middle, or at the end of a word, or isolated. Fpdf will always use the same standard shape in those cases.
31
33
* Vertical writing - Some writing systems are meant to be written vertically. Doing so is not directly supported. In cases where this just means to stack characters on top of each other (eg. Chinese, Japanese, etc.), client software can implement this by placing each character individuall at the correct location. In cases where the characters are connected with each other (eg. Mongolian), this may be more difficult, if possible at all.
0 commit comments