Select Page
SUMMARY:
This Technical Note describes a way to use custom fonts in an iPhone or iPad and MicroStrategy Mobile 9.4.1 without MicroStrategy MobileSDK.
SETUP:
You can add a font that MicroStrategy 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 MicroStrategy 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.
  1. Download the FontPlugin from step 1 in this MSDL Article. 
  2. Copy this to the plugins folder in the MicroStrategy Web installation directory (typically located underC:Program Files (x86)MicroStrategyWeb ASPx).
  3. 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>
  4. Close the file and restart the web server.
  5. In MicroStrategy 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:
    Zapfino Selection
  6. Select the Zapfino font, then set the font size to 36 and save the document.
  7. Open the document in an iPhone or iPad device and you will see that the font is applied, like shown below:
    Zapfino Mobile
NOT SUPPORTED FONTS:
  1. Download the FontPlugin from step 1 in this MSDL Article.
  2. Copy the  FontPlugin to the plugins folder in the MicroStrategy Web installation directory (typically located under C:Program Files (x86)MicroStrategyWeb ASPx).
  3. 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>
       
  4.  Save the changes.
       
  5.  Restart the Web Server
    In MicroStrategy 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:

    Gauge font in MSTR Web

  6. Select the Gauge font, then set the font size to 36 and save the document.
  7. 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.
  8. 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:






  9. Open the document in the MicroStrategy Mobile app on your iPhone or iPad, like shown below:

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

Secured By miniOrange