Blender V5.0
BLF_enums.hh File Reference
#include "BLI_utildefines.h"

Go to the source code of this file.

Enumerations

enum class  FontShadowType { None = 0 , Blur3x3 = 3 , Blur5x5 = 5 , Outline = 6 }
enum class  BLFWrapMode : int { Minimal = 0 , Typographical = 1 << 0 , Path = 1 << 1 , HardLimit = 1 << 2 }
enum  FontFlags {
  BLF_NONE = 0 , BLF_ROTATION = 1 << 0 , BLF_CLIPPING = 1 << 1 , BLF_SHADOW = 1 << 2 ,
  BLF_ASPECT = 1 << 5 , BLF_WORD_WRAP = 1 << 6 , BLF_MONOCHROME = 1 << 7 , BLF_HINTING_NONE = 1 << 8 ,
  BLF_HINTING_SLIGHT = 1 << 9 , BLF_HINTING_FULL = 1 << 10 , BLF_BOLD = 1 << 11 , BLF_ITALIC = 1 << 12 ,
  BLF_MONOSPACED = 1 << 13 , BLF_DEFAULT = 1 << 14 , BLF_LAST_RESORT = 1 << 15 , BLF_BAD_FONT = 1 << 16 ,
  BLF_CACHED = 1 << 17 , BLF_RENDER_SUBPIXELAA = 1 << 18 , BLF_NO_FALLBACK = 1 << 19
}

Functions

 ENUM_OPERATORS (FontFlags, BLF_NO_FALLBACK)

Enumeration Type Documentation

◆ BLFWrapMode

enum class BLFWrapMode : int
strong
Enumerator
Minimal 

Only on ASCII space and line feed. Legacy and invariant.

Typographical 

Multilingual, informed by Unicode Standard Annex #14.

Path 

Wrap on file path separators, space, underscores.

HardLimit 

Line break at limit.

Definition at line 20 of file BLF_enums.hh.

◆ FontFlags

enum FontFlags
Enumerator
BLF_NONE 
BLF_ROTATION 
BLF_CLIPPING 
BLF_SHADOW 
BLF_ASPECT 
BLF_WORD_WRAP 
BLF_MONOCHROME 

No anti-aliasing.

BLF_HINTING_NONE 
BLF_HINTING_SLIGHT 
BLF_HINTING_FULL 
BLF_BOLD 
BLF_ITALIC 
BLF_MONOSPACED 

Intended USE is monospaced, regardless of font type.

BLF_DEFAULT 

A font within the default stack of fonts.

BLF_LAST_RESORT 

Must only be used as last font in the stack.

BLF_BAD_FONT 

Failure to load this font. Don't try again.

BLF_CACHED 

This font is managed by the FreeType cache subsystem.

BLF_RENDER_SUBPIXELAA 

At small sizes glyphs are rendered at multiple sub-pixel positions.

Note
Can be checked without checking BLF_MONOSPACED which can be assumed to be disabled.
BLF_NO_FALLBACK 

Do not look in other fonts when a glyph is not found in this font.

Definition at line 31 of file BLF_enums.hh.

◆ FontShadowType

enum class FontShadowType
strong
Enumerator
None 
Blur3x3 
Blur5x5 
Outline 

Definition at line 13 of file BLF_enums.hh.

Function Documentation

◆ ENUM_OPERATORS()

ENUM_OPERATORS ( FontFlags ,
BLF_NO_FALLBACK  )

References BLF_NO_FALLBACK.