のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

hb-view

template <typename consumer_t, int default_font_size, int subpixel_bits>
struct main_font_text_t
{
  main_font_text_t (void)
		  : options ("[FONT-FILE] [TEXT]"),      <==デフォルト値
		    font_opts (&options, default_font_size, subpixel_bits),
		    input (&options),
		    consumer (&options) {}
int
main (int argc, char **argv)
{
  main_font_text_t<
    shape_consumer_t<view_cairo_t>,   <=== consumer_t
    DEFAULT_FONT_SIZE,                      <=== default_font_size
    SUBPIXEL_BITS                                 <=== subpixel_bits
> 
driver;
  return driver.main (argc, argv);
}