static FX_DWORD FPF_SKIAGetFamilyHash(FX_BSTR bsFamily, FX_DWORD dwStyle, FX_BYTE uCharset) { CFX_ByteString bsFont(bsFamily); if (dwStyle & FXFONT_BOLD) { bsFont += "Bold"; } if (dwStyle & FXFONT_ITALIC) { bsFont += "Italic"; } if (dwStyle & FXFONT_SERIF) { bsFont += "Serif"; } bsFont += uCharset; return FPF_GetHashCode_StringA(bsFont.c_str(), bsFont.GetLength(), TRUE); }
static uint32_t FPF_SKIAGetFamilyHash(const CFX_ByteStringC& bsFamily, uint32_t dwStyle, uint8_t uCharset) { CFX_ByteString bsFont(bsFamily); if (dwStyle & FXFONT_BOLD) { bsFont += "Bold"; } if (dwStyle & FXFONT_ITALIC) { bsFont += "Italic"; } if (dwStyle & FXFONT_SERIF) { bsFont += "Serif"; } bsFont += uCharset; return FPF_GetHashCode_StringA(bsFont.c_str(), bsFont.GetLength(), TRUE); }