Exemplo n.º 1
0
        /// <summary>
        /// Finds all CMap names that belong to the same registry to which a given
        /// font belongs.
        /// </summary>
        /// <param name="fontName">a name of the font for which CMap's are searched.</param>
        /// <returns>a set of CMap names corresponding to the given font.</returns>
        public static ICollection <String> GetCompatibleCmaps(String fontName)
        {
            IDictionary <String, Object> cidFonts = FontCache.GetAllPredefinedCidFonts().Get(fontName);

            if (cidFonts == null)
            {
                return(null);
            }
            String registry = (String)cidFonts.Get(REGISTRY_PROP);

            return(registryNames.Get(registry));
        }
Exemplo n.º 2
0
        public static ICollection <String> GetCompatibleCmaps(String fontName)
        {
            String registry = (String)FontCache.GetAllPredefinedCidFonts().Get(fontName).Get(REGISTRY_PROP);

            return(registryNames.Get(registry));
        }