Ion
|
#include "ion/text/freetypefont.h"
#include <ft2build.h>
#include <algorithm>
#include <cstring>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <vector>
#include "ion/base/allocator.h"
#include "ion/base/datacontainer.h"
#include "ion/base/lockguards.h"
#include "ion/base/logging.h"
#include "ion/base/staticsafedeclare.h"
#include "ion/port/fileutils.h"
#include "ion/port/memorymappedfile.h"
#include "ion/port/mutex.h"
#include "ion/text/freetypefontutils.h"
#include "ion/text/layout.h"
Go to the source code of this file.
Namespaces | |
ion | |
Copyright 2016 Google Inc. | |
ion::text | |
base::AllocatorPtr allocator_ |
The Allocator for the FreeTypeManager and all its Fonts.
Definition at line 143 of file freetypefont.cc.
Referenced by ion::base::Allocatable::GetAllocator(), ion::text::Builder::GetAllocator(), ion::base::Allocatable::GetNonNullAllocator(), ion::base::ScopedAllocation< T >::TransferToDataContainer(), and ion::base::ScopedAllocation< T >::~ScopedAllocation().
FT_Library ft_lib_ |
The shared FT_Library instance.
Definition at line 147 of file freetypefont.cc.
FT_MemoryRec_ ft_mem_ |
Sets up FreeType to use an Ion Allocator to manage memory.
Definition at line 145 of file freetypefont.cc.
port::Mutex mutex_ |
Protects shared access to the Allocator and FT_Library.
Definition at line 149 of file freetypefont.cc.
Referenced by ion::base::StaticDeleterDeleter::AddArrayToDelete(), ion::base::StaticDeleterDeleter::AddPointerToDelete(), ion::base::GenericLockGuard< MutexT >::GenericLockGuard(), ion::base::GenericUnlockGuard< MutexT >::GenericUnlockGuard(), ion::base::GenericLockGuardBase< port::Mutex >::Lock(), ion::base::GenericLockGuardBase< port::Mutex >::TryLock(), ion::base::GenericLockGuardBase< port::Mutex >::Unlock(), and ion::base::GenericUnlockGuard< MutexT >::~GenericUnlockGuard().