Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_graphics
Text
StreamFont.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Font.hpp
"
4
#include <
ivorium_systems/ivorium_systems.hpp
>
5
#include <string>
6
#include <vector>
7
8
namespace
iv
9
{
10
11
class
StreamFont_Subprovider
:
public
Plain_StreamResourceSubprovider
12
{
13
public
:
14
ClientMarker
cm
;
15
using
Plain_StreamResourceSubprovider::instance
;
16
StreamFont_Subprovider
(
Instance
* inst,
StreamResourceProvider
const
* );
17
};
18
19
class
StreamFont
:
private
StreamResource
,
public
Font
20
{
21
public
:
22
using
StreamResource::instance
;
23
ClientMarker
cm
;
24
25
StreamFont
(
Instance
* inst,
StreamResourceProvider
const
* provider,
StreamFont_Subprovider
const
*,
ResourcePath
const
& path );
26
27
private
:
28
void
Load( std::istream & in );
29
Font::Variant
ReadVariant(
Lex
& lex );
30
void
ReadAdvance(
Lex
& lex );
31
32
private
:
33
ResourceAccess
access;
34
};
35
36
37
}