EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB219630: How to use Custom Fonts in MicroStrategy Mobile in iPhone or iPad without MicroStrategy Mobile SDK


Community Admin

• Strategy


This KB article describes a way to use custom fonts in an iPhone or iPad and MicroStrategy Mobile without MicroStrategy Mobile SDK.

SETUP:
You can add a font that Strategy Mobile does not support out-of-the-box and use it in a document viewed on a mobile device. You make the font available by adding a plug-in to Strategy Web and then apply the font to the document. Depending on whether the font is supported in iOS, you may need to perform additional actions.

  • If the font is supported in iOS by default, you don't need to make any changes to the device. When you view the document on an iOS device, the font is automatically applied to the document.
  • To use a font that is not supported in iOS, you must add the necessary font file to your device using an application that allows you to install fonts in your apple device like AnyFont.

 
SUPPORTED FONTS:
The steps below illustrate how to use a sample custom font, called Zapfino, which is supported in iOS by default.

  • Download the FontPlugin from step 1 in this  MSDL Article. 
  • Copy this to the plugins folder in the Strategy Web installation directory (typically located underC:\Program Files (x86)\MicroStrategy\Web ASPx).
  • Expand the FontPlugin folder and navigate to WEB-INF/xml/config and open the file fontNamesPicker.xml. The contents of the file are shown below:
    
    <shortcut-list name="fontPicker">
      <shortcut desc="Zapfino" name="pkrZapfino">
        <attributes>
          <attribute name="style" source="const" value="font-family:Zapfino"/>
          <attribute name="value" source="const" value="Zapfino"/>
        </attributes>
      </shortcut>
    </shortcut-list>

  • Close the file and restart the web server.
  • In Strategy Web create a new document. Insert a textbox, write the text Zapfino Font and under the format options you will see that the Zapfino is allowed now, like shown bellow:
ka0PW0000000nOvYAI_0EM440000002Uuq.jpeg
  • Select the Zapfino font, then set the font size to 36 and save the document.
  • Open the document in an iPhone or iPad device and you will see that the font is applied, like shown below:
ka0PW0000000nOvYAI_0EM440000002UvB.jpeg

NOT SUPPORTED FONTS:

  • Download the FontPlugin from step 1 in this  MSDL Article.
  • Copy the  FontPlugin to the plugins folder in the Strategy Web installation directory (typically located under C:\Program Files (x86)\MicroStrategy\Web ASPx).
  • Expand the FontPlugin folder and navigate to WEB-INF/xml/config. Open the file fontNamesPicker.xml and modify the font by changing the instances of "Zapfino" to "Gauge" or "Gauge-Regular", like shown below in bold:
    Before customization:
    
    <shortcut-list name="fontPicker">
      <shortcut desc="Zapfino" name="pkrZapfino">
        <attributes>
          <attribute name="style" source="const" value="font-family:Zapfino"/>
          <attribute name="value" source="const" value="Zapfino"/>
        </attributes>
      </shortcut>
    </shortcut-list>

     After customization:
    
    <shortcut-list name="fontPicker">
      <shortcut desc="Gauge" name="pkrGauge">
        <attributes>
          <attribute name="style" source="const" value="font-family:Gauge"/>
          <attribute name="value" source="const" value="Gauge-Regular"/>
        </attributes>
      </shortcut>
    </shortcut-list>

       
  •  Save the changes.  
  •  Restart the Web Server
    In Strategy Web create a new document. Insert a textbox, write the text Gauge Font and under the format options you will see that the Gauge is allowed now, like shown bellow:

ka0PW0000000nOvYAI_0EM440000002Uut.jpeg
  • Select the Gauge font, then set the font size to 36 and save the document.
  • Inside your iPhone or iPad go to the apple store and install an application that allows you to install custom fonts in your device like AnyFont.
  • In your computer download the font Gauge file and save it. Unzip the file and search for a file named Gauge-Regular.ttf. Send the Gauge-Regular.ttf to your iPhone or iPad attaching the file an email and open the file in your iPhone or iPad with the AnyFont app, like shown below:
ka0PW0000000nOvYAI_0EM440000002Uv2.jpeg
ka0PW0000000nOvYAI_0EM440000002Uv1.jpeg
ka0PW0000000nOvYAI_0EM440000002Uv4.jpeg
ka0PW0000000nOvYAI_0EM440000002Uuv.jpeg
  • Open the document in the Strategy Mobile app on your iPhone or iPad, like shown below:
ka0PW0000000nOvYAI_0EM440000002UvC.jpeg

 
 
DISCLAIMER:
Third Party Software Installation: WARNING
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.
 
ADDITIONAL INFORMATION:
The Strategy SDK allows you to customize the standard Strategy Web interface, and extend and integrate the Strategy business intelligence functionality into other applications. However, before changing the way Strategy Web products look or behave, it is helpful to understand how the application is built. For more information regarding the Strategy Web architecture or the process of customizing Strategy Web, please refer to the MicroStrategy Developer Hub.
To access the Strategy Developer Hub, you must have access to the Strategy Knowledge Base, you must have purchased the Strategy SDK, and you must be current on your Strategy maintenance agreement. If you are a US-based business and believe that you satisfy all three of these conditions but you do not have access to the Strategy Developer Hub, please contact Strategy Technical Support at support@microstrategy.comor at (703) 848-8700. If you are an international business, please contact Strategy Technical Support at the appropriate email address or phone number found at https://www.microstrategy.com/en/support/contact-support.
CUSTOMIZATION WARNING:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy Technical Support makes no guarantee that an updated version of this particular customization will be provided. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build. For enhancements to this customization or to incorporate similar functionality into other versions, contact your Account Executive to inquire about Strategy Consulting assistance.


Comment

0 comments

Details

Knowledge Article

Published:

July 20, 2017

Last Updated:

February 16, 2024