Exemple #1
0
        public static void SetupDefaultValues()
        {
            //--------
            if (s_isInit)
            {
                return;
            }
            //--------
            PixelFarm.Platforms.StorageService.RegisterProvider(s_filedb);
            myFontLoader = new OpenFontStore();
            //test Typography's custom text break,
            //check if we have that data?

            //string typographyDir = @"/icu/brkitr_src/dictionaries";
            //***
            string typographyDir = @"d:/test/icu60/brkitr_src/dictionaries";

            s_icuDataProvider = new MyIcuDataProvider();
            if (System.IO.Directory.Exists(typographyDir))
            {
                s_icuDataProvider.icuDir = typographyDir;
            }
            Typography.TextBreak.CustomBreakerBuilder.Setup(typographyDir);
            s_isInit = true;
        }
        public static void SetupDefaultValues()
        {
            if (s_isInit)
            {
                return;
            }

            //
            myFontLoader = new OpenFontStore();
            //test Typography's custom text break,
            //check if we have that data?

            //string typographyDir = @"../../PixelFarm/Typography/Typography.TextBreak/icu58/brkitr_src/dictionaries";
            string typographyDir = @"../../PixelFarm/Typography/Typography.TextBreak/icu60/brkitr_src/dictionaries";

            s_icuDataProvider = new MyIcuDataProvider();
            if (System.IO.Directory.Exists(typographyDir))
            {
                s_icuDataProvider.icuDir = typographyDir;
            }
            Typography.TextBreak.CustomBreakerBuilder.Setup(s_icuDataProvider);
            s_isInit = true;
        }