diff --git a/headers/private/app/ServerProtocol.h b/headers/private/app/ServerProtocol.h index 2beb9eca84..f0cc9ea443 100644 --- a/headers/private/app/ServerProtocol.h +++ b/headers/private/app/ServerProtocol.h @@ -115,12 +115,8 @@ enum { AS_SET_SYSTEM_FONT, AS_GET_SYSTEM_FONTS, - AS_QUERY_FONTS_CHANGED, - AS_UPDATED_CLIENT_FONTLIST, - AS_GET_FAMILY_NAME, - AS_GET_STYLE_NAME, - AS_COUNT_FONT_FAMILIES, - AS_COUNT_FONT_STYLES, + AS_GET_FONT_LIST_REVISION, + AS_GET_FAMILY_AND_STYLES, AS_GET_FAMILY_AND_STYLE, AS_GET_FAMILY_AND_STYLE_IDS, diff --git a/src/kits/interface/Font.cpp b/src/kits/interface/Font.cpp index 562ba174fd..71ecd51d99 100644 --- a/src/kits/interface/Font.cpp +++ b/src/kits/interface/Font.cpp @@ -9,11 +9,14 @@ */ +#include + #include #include -#include +#include #include +#include #include #include #include @@ -21,9 +24,11 @@ #include #include +#include #include #include #include +#include const float kUninitializedAscent = INFINITY; @@ -39,6 +44,261 @@ const BFont *be_bold_font = &sBoldFont; const BFont *be_fixed_font = &sFixedFont; +struct style { + BString name; + uint16 face; + uint32 flags; +}; + +struct family { + BString name; + uint32 flags; + BObjectList