iOS How to use multiple font same family on version 2.2.2

Hello,
I am using Barthowheel-Italic and Barthowheel-Regular fonts in the same family. When I load font Barthowheel-Italic first, font Barthowheel-Italic will be displayed while font Barthowheel-Regular will not and vice versa.

Summary
    const auto& familyNamesBeforeRegister = getAvailableFontFamilyNames();

    bool succeed = true;
    CFErrorRef error;
    CGDataProviderRef providerRef = CGDataProviderCreateWithCFData((CFDataRef)dynamicFontData);
    CGFontRef font = CGFontCreateWithDataProvider(providerRef);
    if (!CTFontManagerRegisterGraphicsFont(font, &error))
    {
        CFStringRef errorDescription = CFErrorCopyDescription(error);
        const char* cErrorStr = CFStringGetCStringPtr(errorDescription, kCFStringEncodingUTF8);
        SE_LOGE("Failed to load font: %s", cErrorStr);
        CFRelease(errorDescription);
        succeed = false;
    }

    if (succeed)
    {
        const auto& familyNamesAfterRegister = getAvailableFontFamilyNames();