Skip to content

Commit

Permalink
ofTTF: add latin and latinA ranges to latin alphabet
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed May 8, 2018
1 parent 608d7b8 commit 7075418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/openFrameworks/graphics/ofTrueTypeFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const ofUnicode::range ofUnicode::Space {32, 32};
const ofUnicode::range ofUnicode::IdeographicSpace {0x3000, 0x3000};
const ofUnicode::range ofUnicode::Latin {32, 0x007F};
const ofUnicode::range ofUnicode::Latin1Supplement {32,0x00FF};
const ofUnicode::range ofUnicode::LatinA {0x0100,0x017F};
const ofUnicode::range ofUnicode::Greek {0x0370, 0x03FF};
const ofUnicode::range ofUnicode::Cyrillic {0x0400, 0x04FF};
const ofUnicode::range ofUnicode::Arabic {0x0600, 0x077F};
Expand Down Expand Up @@ -128,7 +129,9 @@ const std::initializer_list<ofUnicode::range> ofAlphabet::Devanagari {

const std::initializer_list<ofUnicode::range> ofAlphabet::Latin {
ofUnicode::Latin1Supplement,
ofUnicode::LatinExtendedAdditional
ofUnicode::LatinExtendedAdditional,
ofUnicode::Latin,
ofUnicode::LatinA,
};

const std::initializer_list<ofUnicode::range> ofAlphabet::Greek {
Expand Down
1 change: 1 addition & 0 deletions libs/openFrameworks/graphics/ofTrueTypeFont.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class ofUnicode{
static const range IdeographicSpace;
static const range Latin;
static const range Latin1Supplement;
static const range LatinA;
static const range Greek;
static const range Cyrillic;
static const range Arabic;
Expand Down

0 comments on commit 7075418

Please sign in to comment.