"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "swindow/SFontTTF.h" between
yudit-3.0.5.tar.gz and yudit-3.0.7.tar.gz

About: yudit is an Unicode plain-text editor that can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines.

SFontTTF.h  (yudit-3.0.5):SFontTTF.h  (yudit-3.0.7)
skipping to change at line 25 skipping to change at line 25
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef SFontTTF_h #ifndef SFontTTF_h
#define SFontTTF_h #define SFontTTF_h
#include "swindow/SCanvas.h" #include "swindow/SCanvas.h"
#include "swindow/SPen.h" #include "swindow/SPen.h"
#include "swindow/SFontLookup.h" #include "swindow/SFontLookup.h"
#include "swindow/SFontCFF.h"
#include "stoolkit/SIO.h" #include "stoolkit/SIO.h"
#include "stoolkit/STypes.h" #include "stoolkit/STypes.h"
#include "stoolkit/SMatrix.h" #include "stoolkit/SMatrix.h"
#include "stoolkit/SBinHashtable.h" #include "stoolkit/SBinHashtable.h"
#include "stoolkit/SHashtable.h" #include "stoolkit/SHashtable.h"
#include "stoolkit/SProperties.h" #include "stoolkit/SProperties.h"
#include "stoolkit/SBinVector.h" #include "stoolkit/SBinVector.h"
#include "stoolkit/SString.h" #include "stoolkit/SString.h"
#include "stoolkit/SProperties.h" #include "stoolkit/SProperties.h"
skipping to change at line 94 skipping to change at line 95
SS_GlyphIndex gindex (SS_UCS4 in); SS_GlyphIndex gindex (SS_UCS4 in);
int gwidth (SS_GlyphIndex in); int gwidth (SS_GlyphIndex in);
unsigned int gsub (const char* script, const char* feature, unsigned int gsub (const char* script, const char* feature,
const SS_GlyphIndex* in, unsigned int in_size, const SS_GlyphIndex* in, unsigned int in_size,
unsigned int* start, SS_GlyphIndex* out, unsigned int* out_size, unsigned int* start, SS_GlyphIndex* out, unsigned int* out_size,
bool* is_contextual); bool* is_contextual);
bool gpos (const char* script, const char* feature, bool gpos (const char* script, const char* feature,
const SS_GlyphIndex* in, int* x, int* y); const SS_GlyphIndex* in, int* x, int* y);
unsigned int getGlyphClass(SS_GlyphIndex in); unsigned int getGlyphClass(SS_GlyphIndex in);
bool attach (SS_GlyphIndex base, SS_GlyphIndex mark, int where, int* x, int* y ); bool attach (SS_GlyphIndex base, SS_GlyphIndex mark, int where, int* x, int* y );
bool getIsEmoji () {
return isEmoji;
}
protected: protected:
// https://docs.microsoft.com/en-us/typography/opentype/spec/otff
// CFF fonts.
SFontCFF* cffFont;
SHardWire hardWire; SHardWire hardWire;
SS_GlyphIndex defaultGlyph; SS_GlyphIndex defaultGlyph;
SProperties char2Glyphs; SProperties char2Glyphs;
SBinHashtable<int> char2Width; SBinHashtable<int> char2Width;
SBinHashtable<int> mark2Base; SBinHashtable<int> mark2Base;
/* this is to position many points, like Lao,Thai,Tibetan */ /* this is to position many points, like Lao,Thai,Tibetan */
SHashtable<SV_INT> mark2BaseList; SHashtable<SV_INT> mark2BaseList;
void drawGlyph (SCanvas* canvas, const SS_Matrix2D& matrix, void drawGlyph (SCanvas* canvas, const SS_Matrix2D& matrix,
skipping to change at line 155 skipping to change at line 162
unsigned int getOTFLigatures (SS_GlyphIndex* ino, unsigned int getOTFLigatures (SS_GlyphIndex* ino,
unsigned int len, const char* script, const char* feature, unsigned int len, const char* script, const char* feature,
SS_GlyphIndex halant, SS_GlyphIndex reord, bool* base); SS_GlyphIndex halant, SS_GlyphIndex reord, bool* base);
bool getContours(SS_GlyphIndex glyphno, SH_Vector * xc, SH_Vector *yc ); bool getContours(SS_GlyphIndex glyphno, SH_Vector * xc, SH_Vector *yc );
SFileImage image; SFileImage image;
SString name; SString name;
SString fontencoding; SString fontencoding;
bool isEmoji;
SFile file; SFile file;
bool ok; bool ok;
bool broken; bool broken;
bool init (); bool init ();
bool processName (); bool processName ();
bool checkTables (); bool checkTables ();
void getName (long id, const char* str, int len); void getName (long id, const char* str, int len);
 End of changes. 4 change blocks. 
1 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)