<commit_before>'use strict';

const fs = require('fs');
module.exports = function(options) {
  // If the font is not part of the params and we're on macOS
  // we check that SFNSText.ttf is available
  if (!options.videoParams.fontPath && process.platform === 'darwin') {
    const systemFontFile = '/System/Library/Fonts/SFNS.ttf';
    try {
      if (fs.existsSync(systemFontFile)) {
        return systemFontFile + ':';
      }
      return '';
    } catch (err) {
      return '';
    }
  }
  return options.videoParams.fontPath ? options.videoParams.fontPath + ':' : '';
};<commit_msg>Use monofont #1135 (#1136)<commit_after>'use strict';

const fs = require('fs');
module.exports = function(options) {
  // If the font is not part of the params and we're on macOS
  // we check that SFNSText.ttf is available
  if (!options.videoParams.fontPath && process.platform === 'darwin') {
    const systemFontFile = '/System/Library/Fonts/SFNSMono.ttf';
    try {
      if (fs.existsSync(systemFontFile)) {
        return systemFontFile + ':';
      }
      return '';
    } catch (err) {
      return '';
    }
  }
  return options.videoParams.fontPath ? options.videoParams.fontPath + ':' : '';
};
{'fraction_non_alphanumeric': 0.14703425229741018, 'fraction_numerical': 0.006683375104427736, 'mean_word_length': 2.993333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3215851', 'n_tokens_mistral': 386, 'n_tokens_neox': 375, 'n_words': 93}