
from os import path

tachyfont_major_version = 1
tachyfont_minor_version = 0

BASE_DIR = path.dirname(__file__)

def fontname_to_zipfile(fontname):
  family_dir = ''
  if fontname[0:10] == 'NotoSansJP':
    family_dir = 'NotoSansJP/'
  zip_path = BASE_DIR + '/fonts/' + family_dir + fontname + '.TachyFont.jar'
  return zip_path



from os import path

tachyfont_major_version = 1
tachyfont_minor_version = 0

BASE_DIR = path.dirname(__file__)

def fontname_to_zipfile(fontname):
  family_dir = ''
  if fontname[0:10] == 'NotoSansJP':
    family_dir = 'NotoSansJP/'
  elif fontname[0:8] == 'NotoSans':
    family_dir = 'NotoSans/'
  elif fontname[0:5] == 'Arimo':
    family_dir = 'Arimo/'
  zip_path = BASE_DIR + '/fonts/' + family_dir + fontname + '.TachyFont.jar'
  return zip_path


Add support for NotoSans and Arimo.
Add support for NotoSans and Arimo.
  
  from os import path
  
  tachyfont_major_version = 1
  tachyfont_minor_version = 0
  
  BASE_DIR = path.dirname(__file__)
  
  def fontname_to_zipfile(fontname):
    family_dir = ''
    if fontname[0:10] == 'NotoSansJP':
      family_dir = 'NotoSansJP/'
+   elif fontname[0:8] == 'NotoSans':
+     family_dir = 'NotoSans/'
+   elif fontname[0:5] == 'Arimo':
+     family_dir = 'Arimo/'
    zip_path = BASE_DIR + '/fonts/' + family_dir + fontname + '.TachyFont.jar'
    return zip_path
  
  
Add support for NotoSans and Arimo.
## Code Before:

from os import path

tachyfont_major_version = 1
tachyfont_minor_version = 0

BASE_DIR = path.dirname(__file__)

def fontname_to_zipfile(fontname):
  family_dir = ''
  if fontname[0:10] == 'NotoSansJP':
    family_dir = 'NotoSansJP/'
  zip_path = BASE_DIR + '/fonts/' + family_dir + fontname + '.TachyFont.jar'
  return zip_path


## Instruction:
Add support for NotoSans and Arimo.
## Code After:

from os import path

tachyfont_major_version = 1
tachyfont_minor_version = 0

BASE_DIR = path.dirname(__file__)

def fontname_to_zipfile(fontname):
  family_dir = ''
  if fontname[0:10] == 'NotoSansJP':
    family_dir = 'NotoSansJP/'
  elif fontname[0:8] == 'NotoSans':
    family_dir = 'NotoSans/'
  elif fontname[0:5] == 'Arimo':
    family_dir = 'Arimo/'
  zip_path = BASE_DIR + '/fonts/' + family_dir + fontname + '.TachyFont.jar'
  return zip_path

