*/
#include "break-algorithm.hh"
-
#include "paper-column.hh"
#include "output-def.hh"
#include "system.hh"
#include "simple-spacer.hh"
#include "group-interface.hh"
-
Array<int>
Break_algorithm::find_break_indices () const
{
return retval;
}
-
Link_array<Grob>
Break_algorithm::find_breaks () const
{
return retval;
}
-
Simple_spacer_wrapper*
Break_algorithm::generate_spacing_problem (Link_array<Grob> const &curline,
Interval line) const
(c) 2004 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
+
#include "warn.hh"
#include "open-type-font.hh"
Open_type_font * otf = new Open_type_font;
int error_code = FT_New_Face( freetype2_library, str.to_str0(),
0, &(otf->face_));
+
+ // int code = FT_Set_Charmap (otf->face_, );
+
if (error_code == FT_Err_Unknown_File_Format)
{
{
FT_Done_Face (face_);
}
+
+
+Box
+Open_type_font::get_indexed_char (int signed_idx)
+{
+ FT_UInt idx = signed_idx;
+ int code =
+ FT_Load_Glyph (face_,
+ idx,
+ FT_LOAD_NO_SCALE);
+
+ FT_Glyph_Metrics m = face->glyph->metrics;
+ Box b (Interval (0, m->width) - m->horiBearingX,
+ Interval (0, m->height) - m->horiBearingY);
+
+ return b;
+}
+
+int
+Open_type_font::name_to_index (String nm)
+{
+
+}
+
+
+Real
+Open_type_font::get_design_size () const
+{
+ return 20.0;
+}