2016-10-18 10:46:06 -07:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © 2016 Project Golan
|
|
|
|
//
|
|
|
|
// See "LICENSE" for more information.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// Font layout handling.
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "Lth.h"
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------|
|
|
|
|
// Extern Functions |
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
// Lth_FontNew
|
|
|
|
//
|
|
|
|
Lth_Font *Lth_FontNew(char const *name)
|
|
|
|
{
|
|
|
|
Lth_Font *font = calloc(1, sizeof(Lth_Font));
|
|
|
|
Lth_assert(font != NULL);
|
|
|
|
|
2016-10-19 07:00:10 -07:00
|
|
|
font->name = Lth_strentdup(name);
|
2016-10-18 10:46:06 -07:00
|
|
|
|
|
|
|
return font;
|
|
|
|
}
|
|
|
|
|
|
|
|
// EOF
|