Exemplo n.º 1
0
        /// <summary>
        /// Returns whether this font was created by SIL International.
        /// </summary>
        /// <param name="fontFullName"></param>
        /// <returns></returns>
        public static bool IsSILFont(string fontFullName)
        {
            CheckUserFileAccessRights rights = new CheckUserFileAccessRights(fontFullName);

            if (Common.IsUnixOS())
            {
                return(CheckIsSilFont(fontFullName));
            }

            if (rights.canRead())
            {
                return(CheckIsSilFont(fontFullName));
            }
            return(false);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns whether this font was created by SIL International.
        /// </summary>
        /// <param name="fontFullName"></param>
        /// <returns></returns>
        public static bool IsSILFont(string fontFullName)
        {
            CheckUserFileAccessRights rights = new CheckUserFileAccessRights(fontFullName);
            if (Common.IsUnixOS())
            {
                return CheckIsSilFont(fontFullName);
            }

            if (rights.canRead())
            {
                return CheckIsSilFont(fontFullName);
            }
            return false;
        }