mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 15:16:38 +00:00
Preload entire font file if the font file isn't efficiently seekable, which should fix very slow startup times on Android.
This commit is contained in:
@@ -285,6 +285,11 @@ bool GpSystemServices_Android::IsTextInputEnabled() const
|
||||
return m_textInputEnabled;
|
||||
}
|
||||
|
||||
bool GpSystemServices_Android::AreFontResourcesSeekable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
GpSystemServices_Android *GpSystemServices_Android::GetInstance()
|
||||
{
|
||||
return &ms_instance;
|
||||
|
@@ -23,6 +23,7 @@ public:
|
||||
unsigned int GetCPUCount() const override;
|
||||
void SetTextInputEnabled(bool isEnabled) override;
|
||||
bool IsTextInputEnabled() const override;
|
||||
bool AreFontResourcesSeekable() const override;
|
||||
|
||||
void FlushTextInputEnabled();
|
||||
|
||||
|
Reference in New Issue
Block a user