Font.Deactivate
---------------

Deactivates a font inside app or whole computer.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Font](component_Font.md) | [2.6](newinversion26.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Font.Deactivate"; Path; Local ) 

**MBS**( **"Font.Deactivate";** /\* Deactivates a font inside app or whole computer. \*/  
**$Path**; /\* The native file path to the font file.e.g. "C:\\test.fon" \*/   
**$Local**) /\* Pass 1 to activate only inside app or 0 for globally.  
This parameter is ignored on iOS as font activation is only local there.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native file path to the font file. | "C:\\test.fon" |
| Local | Pass 1 to activate only inside app or 0 for globally.   This parameter is ignored on iOS as font activation is only local there. | 0 |

### Result

Returns "OK" or error number from OS.

### Description

Deactivates a font inside app or whole computer.  
### Examples

Deactivate a font:

 MBS ( "Font.Deactivate"; "/Users/test/Desktop/test.ttf"; 1 )  
### See also

- [Font.Activate](FontActivate.md)

### Release notes

- **Version 11.0**
    - Fixed bug in [Font.Deactivate](https://www.mbsplugins.eu/FontDeactivate.shtml) for macOS, where deactivate was not working since v10.3.
- **Version 10.3**
    - Rewrote [Font.Activate](https://www.mbsplugins.eu/FontActivate.shtml) and [Font.Deactivate](https://www.mbsplugins.eu/FontDeactivate.shtml) for newer macOS versions.

### Example Databases

- [Utility functions/Load Fonts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Load%20Fonts.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 11.0pr7](https://www.mbsplugins.de/archive/2021-01-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr7](https://www.mbsplugins.de/archive/2020-06-28/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.6pr5](https://www.mbsplugins.de/archive/2012-02-28/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 26th June 2020

  
[Font.CalculateTextWidth](FontCalculateTextWidth.md) - [FontManager.FontFile](FontManagerFontFile.md)

[HTML Version](FontDeactivate.shtml)