NAP
Public Member Functions | Protected Member Functions | List of all members
FontService Class Reference

#include <fontservice.h>

Public Member Functions

 FontService (ServiceConfiguration *configuration)
 
virtual ~FontService () override
 
- Public Member Functions inherited from Service
UNPREFIXED_MODULE_NAME_INPUTCASE Service (ServiceConfiguration *configuration)
 
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies) override
 
virtual void update (double deltaTime) override
 
 Service (ServiceConfiguration *configuration)
 
virtual ~Service ()
 
CoregetCore ()
 
const CoregetCore () const
 
std::string getTypeName () const
 
const ModulegetModule () const
 
 Service (Service &)=delete
 
Serviceoperator= (const Service &)=delete
 
 Service (Service &&)=delete
 
Serviceoperator= (Service &&)=delete
 

Protected Member Functions

virtual bool init (utility::ErrorState &error) override
 
virtual void shutdown () override
 
virtual void registerObjectCreators (rtti::Factory &factory) override
 
void * getHandle () const
 
- Protected Member Functions inherited from Service
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies)
 
virtual void created ()
 
virtual void preUpdate (double deltaTime)
 
virtual void update (double deltaTime)
 
virtual void postUpdate (double deltaTime)
 
virtual void preShutdown ()
 
virtual void preResourcesLoaded ()
 
virtual void postResourcesLoaded ()
 
template<typename SERVICE_CONFIG >
SERVICE_CONFIG * getConfiguration ()
 
template<typename SERVICE_CONFIG >
const SERVICE_CONFIG * getConfiguration () const
 
std::string getIniFilePath () const
 
std::string getIniFilePath (const std::string &appendix) const
 

Description

Manages the font rendering library.

Inheritance diagram for FontService:
[legend]
Collaboration diagram for FontService:
[legend]

Constructor & Destructor Documentation

◆ FontService()

FontService ( ServiceConfiguration configuration)

Default constructor

◆ ~FontService()

virtual ~FontService ( )
overridevirtual

Explicitly frees the font API

Member Function Documentation

◆ getHandle()

void* getHandle ( ) const
protected

Returns the handle to the free-type library, only accessible by resources in this module Represents a FT_Library object

Returns
the handle to the free-type library

◆ init()

virtual bool init ( utility::ErrorState error)
overrideprotectedvirtual

Initialize font related functionality

Reimplemented from Service.

◆ registerObjectCreators()

virtual void registerObjectCreators ( rtti::Factory factory)
overrideprotectedvirtual

Registers all objects that need a specific way of construction, in this case a font resource

Parameters
factorythe factory to register the object creators with

Reimplemented from Service.

◆ shutdown()

virtual void shutdown ( )
overrideprotectedvirtual

Shuts down all font related functionality

Reimplemented from Service.