w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

l2r_fonts.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define F_FAMILY_ROMAN   1
 
#define F_FAMILY_ROMAN_1   2
 
#define F_FAMILY_ROMAN_2   3
 
#define F_FAMILY_ROMAN_3   4
 
#define F_FAMILY_ROMAN_4   17
 
#define F_FAMILY_SANSSERIF   5
 
#define F_FAMILY_SANSSERIF_1   6
 
#define F_FAMILY_SANSSERIF_2   7
 
#define F_FAMILY_SANSSERIF_3   8
 
#define F_FAMILY_SANSSERIF_4   18
 
#define F_FAMILY_TYPEWRITER   9
 
#define F_FAMILY_TYPEWRITER_1   10
 
#define F_FAMILY_TYPEWRITER_2   11
 
#define F_FAMILY_TYPEWRITER_3   12
 
#define F_FAMILY_TYPEWRITER_4   19
 
#define F_FAMILY_CALLIGRAPHIC   13
 
#define F_FAMILY_CALLIGRAPHIC_1   14
 
#define F_FAMILY_CALLIGRAPHIC_2   15
 
#define F_FAMILY_CALLIGRAPHIC_3   16
 
#define F_SHAPE_SLANTED   1
 
#define F_SHAPE_SLANTED_1   2
 
#define F_SHAPE_SLANTED_2   3
 
#define F_SHAPE_SLANTED_3   4
 
#define F_SHAPE_SLANTED_4   17
 
#define F_SHAPE_ITALIC   5
 
#define F_SHAPE_ITALIC_1   6
 
#define F_SHAPE_ITALIC_2   7
 
#define F_SHAPE_ITALIC_3   8
 
#define F_SHAPE_ITALIC_4   18
 
#define F_SHAPE_CAPS   9
 
#define F_SHAPE_CAPS_1   10
 
#define F_SHAPE_CAPS_2   11
 
#define F_SHAPE_CAPS_3   12
 
#define F_SHAPE_CAPS_4   19
 
#define F_SHAPE_UPRIGHT   13
 
#define F_SHAPE_UPRIGHT_1   14
 
#define F_SHAPE_UPRIGHT_2   15
 
#define F_SHAPE_UPRIGHT_3   16
 
#define F_SERIES_MEDIUM   1
 
#define F_SERIES_MEDIUM_1   2
 
#define F_SERIES_MEDIUM_2   3
 
#define F_SERIES_MEDIUM_3   4
 
#define F_SERIES_BOLD   5
 
#define F_SERIES_BOLD_1   6
 
#define F_SERIES_BOLD_2   7
 
#define F_SERIES_BOLD_3   8
 
#define F_SERIES_BOLD_4   9
 
#define F_TEXT_NORMAL   1
 
#define F_TEXT_NORMAL_1   2
 
#define F_TEXT_NORMAL_2   3
 
#define F_TEXT_NORMAL_3   4
 
#define F_EMPHASIZE_1   2
 
#define F_EMPHASIZE_2   3
 
#define F_EMPHASIZE_3   4
 
#define F_SMALLER   -1
 
#define F_LARGER   -2
 

Functions

void InitializeDocumentFont (int family, int size, int shape, int series)
 
void CmdFontFamily (int code)
 
int CurrentFontFamily (void)
 
int DefaultFontFamily (void)
 
void CmdFontShape (int code)
 
int CurrentFontShape (void)
 
int DefaultFontShape (void)
 
void CmdFontSeries (int code)
 
int CurrentFontSeries (void)
 
int DefaultFontSeries (void)
 
void CmdFontSize (int code)
 
int CurrentFontSize (void)
 
int DefaultFontSize (void)
 
int CurrentCyrillicFontFamily (void)
 
void CmdEmphasize (int code)
 
void CmdUnderline (int code)
 
void CmdTextNormal (int code)
 
int TexFontNumber (char *Fname)
 
int RtfFontNumber (char *Fname)
 
void PushFontSettings (void)
 
void PopFontSettings (void)
 
void MonitorFontChanges (char *text)
 

Macro Definition Documentation

◆ F_EMPHASIZE_1

#define F_EMPHASIZE_1   2

Definition at line 58 of file l2r_fonts.h.

◆ F_EMPHASIZE_2

#define F_EMPHASIZE_2   3

Definition at line 59 of file l2r_fonts.h.

◆ F_EMPHASIZE_3

#define F_EMPHASIZE_3   4

Definition at line 60 of file l2r_fonts.h.

◆ F_FAMILY_CALLIGRAPHIC

#define F_FAMILY_CALLIGRAPHIC   13

Definition at line 18 of file l2r_fonts.h.

◆ F_FAMILY_CALLIGRAPHIC_1

#define F_FAMILY_CALLIGRAPHIC_1   14

Definition at line 19 of file l2r_fonts.h.

◆ F_FAMILY_CALLIGRAPHIC_2

#define F_FAMILY_CALLIGRAPHIC_2   15

Definition at line 20 of file l2r_fonts.h.

◆ F_FAMILY_CALLIGRAPHIC_3

#define F_FAMILY_CALLIGRAPHIC_3   16

Definition at line 21 of file l2r_fonts.h.

◆ F_FAMILY_ROMAN

#define F_FAMILY_ROMAN   1

Definition at line 3 of file l2r_fonts.h.

◆ F_FAMILY_ROMAN_1

#define F_FAMILY_ROMAN_1   2

Definition at line 4 of file l2r_fonts.h.

◆ F_FAMILY_ROMAN_2

#define F_FAMILY_ROMAN_2   3

Definition at line 5 of file l2r_fonts.h.

◆ F_FAMILY_ROMAN_3

#define F_FAMILY_ROMAN_3   4

Definition at line 6 of file l2r_fonts.h.

◆ F_FAMILY_ROMAN_4

#define F_FAMILY_ROMAN_4   17

Definition at line 7 of file l2r_fonts.h.

◆ F_FAMILY_SANSSERIF

#define F_FAMILY_SANSSERIF   5

Definition at line 8 of file l2r_fonts.h.

◆ F_FAMILY_SANSSERIF_1

#define F_FAMILY_SANSSERIF_1   6

Definition at line 9 of file l2r_fonts.h.

◆ F_FAMILY_SANSSERIF_2

#define F_FAMILY_SANSSERIF_2   7

Definition at line 10 of file l2r_fonts.h.

◆ F_FAMILY_SANSSERIF_3

#define F_FAMILY_SANSSERIF_3   8

Definition at line 11 of file l2r_fonts.h.

◆ F_FAMILY_SANSSERIF_4

#define F_FAMILY_SANSSERIF_4   18

Definition at line 12 of file l2r_fonts.h.

◆ F_FAMILY_TYPEWRITER

#define F_FAMILY_TYPEWRITER   9

Definition at line 13 of file l2r_fonts.h.

◆ F_FAMILY_TYPEWRITER_1

#define F_FAMILY_TYPEWRITER_1   10

Definition at line 14 of file l2r_fonts.h.

◆ F_FAMILY_TYPEWRITER_2

#define F_FAMILY_TYPEWRITER_2   11

Definition at line 15 of file l2r_fonts.h.

◆ F_FAMILY_TYPEWRITER_3

#define F_FAMILY_TYPEWRITER_3   12

Definition at line 16 of file l2r_fonts.h.

◆ F_FAMILY_TYPEWRITER_4

#define F_FAMILY_TYPEWRITER_4   19

Definition at line 17 of file l2r_fonts.h.

◆ F_LARGER

#define F_LARGER   -2

Definition at line 63 of file l2r_fonts.h.

◆ F_SERIES_BOLD

#define F_SERIES_BOLD   5

Definition at line 47 of file l2r_fonts.h.

◆ F_SERIES_BOLD_1

#define F_SERIES_BOLD_1   6

Definition at line 48 of file l2r_fonts.h.

◆ F_SERIES_BOLD_2

#define F_SERIES_BOLD_2   7

Definition at line 49 of file l2r_fonts.h.

◆ F_SERIES_BOLD_3

#define F_SERIES_BOLD_3   8

Definition at line 50 of file l2r_fonts.h.

◆ F_SERIES_BOLD_4

#define F_SERIES_BOLD_4   9

Definition at line 51 of file l2r_fonts.h.

◆ F_SERIES_MEDIUM

#define F_SERIES_MEDIUM   1

Definition at line 43 of file l2r_fonts.h.

◆ F_SERIES_MEDIUM_1

#define F_SERIES_MEDIUM_1   2

Definition at line 44 of file l2r_fonts.h.

◆ F_SERIES_MEDIUM_2

#define F_SERIES_MEDIUM_2   3

Definition at line 45 of file l2r_fonts.h.

◆ F_SERIES_MEDIUM_3

#define F_SERIES_MEDIUM_3   4

Definition at line 46 of file l2r_fonts.h.

◆ F_SHAPE_CAPS

#define F_SHAPE_CAPS   9

Definition at line 33 of file l2r_fonts.h.

◆ F_SHAPE_CAPS_1

#define F_SHAPE_CAPS_1   10

Definition at line 34 of file l2r_fonts.h.

◆ F_SHAPE_CAPS_2

#define F_SHAPE_CAPS_2   11

Definition at line 35 of file l2r_fonts.h.

◆ F_SHAPE_CAPS_3

#define F_SHAPE_CAPS_3   12

Definition at line 36 of file l2r_fonts.h.

◆ F_SHAPE_CAPS_4

#define F_SHAPE_CAPS_4   19

Definition at line 37 of file l2r_fonts.h.

◆ F_SHAPE_ITALIC

#define F_SHAPE_ITALIC   5

Definition at line 28 of file l2r_fonts.h.

◆ F_SHAPE_ITALIC_1

#define F_SHAPE_ITALIC_1   6

Definition at line 29 of file l2r_fonts.h.

◆ F_SHAPE_ITALIC_2

#define F_SHAPE_ITALIC_2   7

Definition at line 30 of file l2r_fonts.h.

◆ F_SHAPE_ITALIC_3

#define F_SHAPE_ITALIC_3   8

Definition at line 31 of file l2r_fonts.h.

◆ F_SHAPE_ITALIC_4

#define F_SHAPE_ITALIC_4   18

Definition at line 32 of file l2r_fonts.h.

◆ F_SHAPE_SLANTED

#define F_SHAPE_SLANTED   1

Definition at line 23 of file l2r_fonts.h.

◆ F_SHAPE_SLANTED_1

#define F_SHAPE_SLANTED_1   2

Definition at line 24 of file l2r_fonts.h.

◆ F_SHAPE_SLANTED_2

#define F_SHAPE_SLANTED_2   3

Definition at line 25 of file l2r_fonts.h.

◆ F_SHAPE_SLANTED_3

#define F_SHAPE_SLANTED_3   4

Definition at line 26 of file l2r_fonts.h.

◆ F_SHAPE_SLANTED_4

#define F_SHAPE_SLANTED_4   17

Definition at line 27 of file l2r_fonts.h.

◆ F_SHAPE_UPRIGHT

#define F_SHAPE_UPRIGHT   13

Definition at line 38 of file l2r_fonts.h.

◆ F_SHAPE_UPRIGHT_1

#define F_SHAPE_UPRIGHT_1   14

Definition at line 39 of file l2r_fonts.h.

◆ F_SHAPE_UPRIGHT_2

#define F_SHAPE_UPRIGHT_2   15

Definition at line 40 of file l2r_fonts.h.

◆ F_SHAPE_UPRIGHT_3

#define F_SHAPE_UPRIGHT_3   16

Definition at line 41 of file l2r_fonts.h.

◆ F_SMALLER

#define F_SMALLER   -1

Definition at line 62 of file l2r_fonts.h.

◆ F_TEXT_NORMAL

#define F_TEXT_NORMAL   1

Definition at line 53 of file l2r_fonts.h.

◆ F_TEXT_NORMAL_1

#define F_TEXT_NORMAL_1   2

Definition at line 54 of file l2r_fonts.h.

◆ F_TEXT_NORMAL_2

#define F_TEXT_NORMAL_2   3

Definition at line 55 of file l2r_fonts.h.

◆ F_TEXT_NORMAL_3

#define F_TEXT_NORMAL_3   4

Definition at line 56 of file l2r_fonts.h.

Function Documentation

◆ CmdEmphasize()

void CmdEmphasize ( int  code)

purpose: LaTeX commands , \emph, and \begin{em} ... \end{em}

      the \emph{string} construction is handled by \textit{string} or \textup{string}

      {\em string} should be properly localized by brace mechanisms

      \begin{em} ... \end{em} will be localized by environment mechanisms

F_EMPHASIZE_1        for  \em ... 
F_EMPHASIZE_2        for  \emph{...}
F_EMPHASIZE_3        for  \begin{em} ... \end{em}

Definition at line 403 of file l2r_fonts.c.

References CmdFontShape(), CurrentFontShape(), diagnostics(), F_EMPHASIZE_2, F_EMPHASIZE_3, F_SHAPE_ITALIC_2, F_SHAPE_UPRIGHT, F_SHAPE_UPRIGHT_2, family, FontInfoDepth, fprintRTF(), ON, RtfFontInfo, and size.

◆ CmdFontFamily()

◆ CmdFontSeries()

void CmdFontSeries ( int  code)

purpose : sets the font weight to medium or bold

F_SERIES_BOLD for \bfseries ... F_SERIES_BOLD_1 for \bf ... F_SERIES_BOLD_2 for \textbf{...} F_SERIES_BOLD_3 for \begin{bfseries} ... \end{bfseries}

Definition at line 309 of file l2r_fonts.c.

References ConvertString(), diagnostics(), F_SERIES_BOLD, F_SERIES_BOLD_1, F_SERIES_BOLD_2, F_SERIES_BOLD_3, F_SERIES_BOLD_4, F_SERIES_MEDIUM, F_SERIES_MEDIUM_1, F_SERIES_MEDIUM_2, F_SERIES_MEDIUM_3, family, FontInfoDepth, fprintRTF(), free, getBraceParam(), ON, RtfFontInfo, s, and size.

Referenced by CmdTextNormal().

◆ CmdFontShape()

void CmdFontShape ( int  code)

purpose : sets the font to upright, italic, or small caps F_SHAPE_ITALIC for \itshape F_SHAPE_ITALIC_1 for \it F_SHAPE_ITALIC_2 for \textit{...} F_SHAPE_ITALIC_3 for \begin{itshape} F_SHAPE_ITALIC_4 for \begin{it}

Definition at line 233 of file l2r_fonts.c.

References ConvertString(), diagnostics(), F_SHAPE_CAPS, F_SHAPE_CAPS_1, F_SHAPE_CAPS_2, F_SHAPE_CAPS_3, F_SHAPE_CAPS_4, F_SHAPE_ITALIC, F_SHAPE_ITALIC_1, F_SHAPE_ITALIC_2, F_SHAPE_ITALIC_3, F_SHAPE_ITALIC_4, F_SHAPE_SLANTED, F_SHAPE_SLANTED_1, F_SHAPE_SLANTED_2, F_SHAPE_SLANTED_3, F_SHAPE_SLANTED_4, F_SHAPE_UPRIGHT, F_SHAPE_UPRIGHT_1, F_SHAPE_UPRIGHT_2, F_SHAPE_UPRIGHT_3, family, FontInfoDepth, fprintRTF(), free, getBraceParam(), ON, RtfFontInfo, s, and size.

Referenced by CmdEmphasize(), and CmdTextNormal().

◆ CmdFontSize()

void CmdFontSize ( int  code)

purpose : handles LaTeX commands that change the font size

Definition at line 375 of file l2r_fonts.c.

References CurrentFontSize(), DefaultFontSize(), diagnostics(), F_LARGER, F_SMALLER, family, FontInfoDepth, fprintRTF(), int(), RtfFontInfo, and size.

Referenced by CmdTextNormal().

◆ CmdTextNormal()

void CmdTextNormal ( int  code)

purpose: handle \textnormal{text} {\normalfont ...} commands

F_TEXT_NORMAL        for  \normalfont ... 
F_TEXT_NORMAL_1
F_TEXT_NORMAL_2      for  \textnormal{...}
F_TEXT_NORMAL_3      for  \begin{normalfont} ... \end{normalfont}

Definition at line 469 of file l2r_fonts.c.

References CmdFontFamily(), CmdFontSeries(), CmdFontShape(), CmdFontSize(), ConvertString(), CurrentFontFamily(), CurrentFontSeries(), CurrentFontShape(), CurrentFontSize(), DefaultFontFamily(), DefaultFontSeries(), DefaultFontShape(), DefaultFontSize(), diagnostics(), F_TEXT_NORMAL_2, F_TEXT_NORMAL_3, family, FontInfoDepth, fprintRTF(), free, getBraceParam(), ON, RtfFontInfo, s, and size.

◆ CmdUnderline()

void CmdUnderline ( int  code)

purpose: handle \underline{text}

Definition at line 452 of file l2r_fonts.c.

References ConvertString(), diagnostics(), fprintRTF(), free, getBraceParam(), and s.

◆ CurrentCyrillicFontFamily()

int CurrentCyrillicFontFamily ( void  )

purpose: returns the cyrillic font that should be used ... if the current font is cyrillic font then -1 is returned

Definition at line 619 of file l2r_fonts.c.

References CfgNext(), CfgStartIterate(), CurrentFontFamily(), diagnostics(), FONT_A, font_type, i, num, strcmp(), strncmp(), and TexFontNumber().

◆ CurrentFontFamily()

int CurrentFontFamily ( void  )

purpose: returns the current RTF family

Definition at line 609 of file l2r_fonts.c.

References diagnostics(), RtfFontInfoType::family, family, FontInfoDepth, and RtfFontInfo.

Referenced by CmdTextNormal(), and CurrentCyrillicFontFamily().

◆ CurrentFontSeries()

int CurrentFontSeries ( void  )

purpose: returns the current RTF series

Definition at line 676 of file l2r_fonts.c.

References diagnostics(), FontInfoDepth, RtfFontInfo, and RtfFontInfoType::series.

Referenced by CmdTextNormal().

◆ CurrentFontShape()

int CurrentFontShape ( void  )

purpose: returns the current RTF shape

Definition at line 655 of file l2r_fonts.c.

References diagnostics(), FontInfoDepth, RtfFontInfo, and RtfFontInfoType::shape.

Referenced by CmdEmphasize(), and CmdTextNormal().

◆ CurrentFontSize()

◆ DefaultFontFamily()

int DefaultFontFamily ( void  )

◆ DefaultFontSeries()

int DefaultFontSeries ( void  )

Definition at line 602 of file l2r_fonts.c.

References diagnostics(), RtfFontInfo, and RtfFontInfoType::series.

Referenced by CmdTextNormal().

◆ DefaultFontShape()

int DefaultFontShape ( void  )

Definition at line 595 of file l2r_fonts.c.

References diagnostics(), RtfFontInfo, and RtfFontInfoType::shape.

Referenced by CmdTextNormal().

◆ DefaultFontSize()

int DefaultFontSize ( void  )

Definition at line 588 of file l2r_fonts.c.

References diagnostics(), RtfFontInfo, size, and RtfFontInfoType::size.

Referenced by CmdFontSize(), CmdTextNormal(), and setThree().

◆ InitializeDocumentFont()

void InitializeDocumentFont ( int  family,
int  size,
int  shape,
int  series 
)

purpose: Initialize the basic font properties for a document pass -1 to avoid setting any parameter

Definition at line 560 of file l2r_fonts.c.

References diagnostics(), RtfFontInfoType::family, family, RtfFontInfo, RtfFontInfoType::series, RtfFontInfoType::shape, size, and RtfFontInfoType::size.

Referenced by main(), setPackageFont(), and setPointSize().

◆ MonitorFontChanges()

◆ PopFontSettings()

void PopFontSettings ( void  )

Definition at line 704 of file l2r_fonts.c.

References diagnostics(), ERROR, family, FontInfoDepth, RtfFontInfo, and size.

Referenced by fprintRTF().

◆ PushFontSettings()

◆ RtfFontNumber()

◆ TexFontNumber()

int TexFontNumber ( char *  Fname)

purpose: returns the RTF font number for a particular LaTeX font example: TexFontNumber("Roman")

Definition at line 123 of file l2r_fonts.c.

References FONT_A, and SearchRtfIndex().

Referenced by CmdFontFamily(), CmdTabular(), CmdVerb(), CmdVerbatim(), CurrentCyrillicFontFamily(), Ignore_Environment(), main(), RtfFontNumber(), and RtfHeader().