mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-20 12:57:49 +00:00
Adds a new design-time font property for when `&displayMap` is in use in a keyboard, so that the web debugger can use that font as appropriate. If the keyboard does not have a `&displayMap` store, then the DisplayMap font property is disabled, and the web debugger will use the OSK Font instead, as previously was the case. Note that the font for `&displayMap` has to be installed on the keyboard author's system in order for it to be served up. Fixes: #12123
42 lines
1 KiB
ObjectPascal
42 lines
1 KiB
ObjectPascal
(*
|
|
Name: KeyboardFonts
|
|
Copyright: Copyright (C) 2003-2017 SIL International.
|
|
Documentation:
|
|
Description:
|
|
Create Date: 25 Sep 2014
|
|
|
|
Modified Date: 25 Sep 2014
|
|
Authors: mcdurdin
|
|
Related Files:
|
|
Dependencies:
|
|
|
|
Bugs:
|
|
Todo:
|
|
Notes:
|
|
History: 25 Sep 2014 - mcdurdin - I4409 - V9.0 - Wrong font selected in keyboard debugger touch layout
|
|
|
|
*)
|
|
unit KeyboardFonts;
|
|
|
|
interface
|
|
|
|
type
|
|
TKeyboardFont = (kfontCode, kfontChar, kfontOSK, kfontTouchLayoutPhone, kfontTouchLayoutTablet, kfontTouchLayoutDesktop,
|
|
kfontDisplayMap);
|
|
|
|
TKeyboardFontArray = array[TKeyboardFont] of string; // I4409
|
|
|
|
TKeyboardFontInfo = record
|
|
Name: string;
|
|
Size: string;
|
|
//Filename: string;
|
|
Enabled: Boolean;
|
|
end;
|
|
|
|
const
|
|
KeyboardFontId: array[TKeyboardFont] of string = (
|
|
'Code', 'Char', 'Osk', 'TouchLayoutPhone', 'TouchLayoutTablet', 'TouchLayoutDesktop', 'DisplayMap'
|
|
);
|
|
implementation
|
|
|
|
end.
|