4 Replies Latest reply on Nov 27, 2014 8:06 AM by codecruncher

    Embedding Fonts in a standalone solution



      Embedding Fonts in a standalone solution


      I have a solution that requires a custom font to be used for display and printing in FMPro 13 advanced.

      I have been shipping the solution by embedding a zip file as a document into a container, then expanding it into the font directory on first run.

      Is there a way to just embed the font into the solution like you can I a PDF and avoid possible problems with the users customizing their systems etc.


        • 1. Re: Embedding Fonts in a standalone solution

          Filemaker cannot embed fonts except in PDF files.  You are using the simplest way now for non copyrighted fonts.

          From Filemakers Documentation

          You should use a custom installation program to package your runtime solution for installation by users.
          Configuring a custom installation application to install runtime database solution files may require more
          engineering than using a compression utility, but will help to ensure that your users do not have difficulties
          installing your runtime solution.
          Here are some custom installation applications you might want to use:
          MindVision Installer VISE
          InstallShield MultiPlatform
          • 2. Re: Embedding Fonts in a standalone solution

            While I agree that you will need a custom installer on Windows on a Mac they cause too many issues compared to a simple drag-and-drop dmg installer and should be avoided. Copying the fonts into the user's font directory upon first run is the correct way to do it. You can check if the fonts are still present in the directory whenever the runtime is launched or the layout is accessed. Any Mac software installer will be unable to check if the fonts have been moved once the installation has been completed anyhow. 

            • 3. Re: Embedding Fonts in a standalone solution

              How would you do this check to see if the fonts are in the fonts directory?

              • 4. Re: Embedding Fonts in a standalone solution

                Use the following path:

                Left(Get(DocumentsPath);Length(Get(DocumentsPath))-10) & "Library/Fonts/" & "Font Name.ttf"