# Path: PyDvi/Tools/Logging.py
# def print_card(text, **kwargs):
# 
#     """ Print the string *text* formated by :meth:`format_card`.  The remaining keyword arguments
#     *kwargs* are passed to :meth:`format_card`.
#     """
#     
#     print format_card(text, **kwargs)
# 
# Path: PyDvi/Tools/TexCommentedFile.py
# class TexCommentedFile(file):
# 
#     """ This class permits to iterate over lines of a text file and to skip commented line by '%'.
#     """
# 
#     ##############################################
# 
#     def __init__(self, filename):
# 
#         super(TexCommentedFile, self).__init__(filename, mode='r')
# 
#     ##############################################
# 
#     def __iter__(self):
# 
#         while True:
#             line = self.readline()
#             if not line:
#                 raise StopIteration()
#             comment_start_index = line.find('%')
#             if comment_start_index != -1:
#                 line = line[:comment_start_index]
#             line = line.strip()
#             if line:
#                 yield line
# 
#     ##############################################
# 
#     def concatenate_lines(self):
# 
#         """ Concatenate the lines and return the corresponding string. """
# 
#         return ''.join(self)


import os
from ..Tools.Logging import print_card
from ..Tools.TexCommentedFile import TexCommentedFile
    def __init__(self, tex_name, ps_font_name, ps_snippet, effects, encoding, pfb_filename):

        self.tex_name = tex_name
        self.ps_font_name = ps_font_name
        self.ps_snippet = ps_snippet
        self.effects = effects
        self.encoding = encoding
        self.pfb_filename = pfb_filename

    ##############################################

    def print_summary(self):

        message_pattern = '''Font Map Entry %s

 - PS font name %s
 - ps snippet   "%s"
 - effects      %s
 - encoding     %s
 - pfb_filename %s''' 

        message = message_pattern % (
            self.tex_name,
            self.ps_font_name,
            self.ps_snippet,
            self.effects,
            self.encoding,
            self.pfb_filename,
            )


# Path: PyDvi/Tools/Logging.py
# def print_card(text, **kwargs):
# 
#     """ Print the string *text* formated by :meth:`format_card`.  The remaining keyword arguments
#     *kwargs* are passed to :meth:`format_card`.
#     """
#     
#     print format_card(text, **kwargs)
# 
# Path: PyDvi/Tools/TexCommentedFile.py
# class TexCommentedFile(file):
# 
#     """ This class permits to iterate over lines of a text file and to skip commented line by '%'.
#     """
# 
#     ##############################################
# 
#     def __init__(self, filename):
# 
#         super(TexCommentedFile, self).__init__(filename, mode='r')
# 
#     ##############################################
# 
#     def __iter__(self):
# 
#         while True:
#             line = self.readline()
#             if not line:
#                 raise StopIteration()
#             comment_start_index = line.find('%')
#             if comment_start_index != -1:
#                 line = line[:comment_start_index]
#             line = line.strip()
#             if line:
#                 yield line
# 
#     ##############################################
# 
#     def concatenate_lines(self):
# 
#         """ Concatenate the lines and return the corresponding string. """
# 
#         return ''.join(self)


# Path: PyDvi/Font/FontMap.py
import os
from ..Tools.Logging import print_card
from ..Tools.TexCommentedFile import TexCommentedFile

    def __init__(self, tex_name, ps_font_name, ps_snippet, effects, encoding, pfb_filename):

        self.tex_name = tex_name
        self.ps_font_name = ps_font_name
        self.ps_snippet = ps_snippet
        self.effects = effects
        self.encoding = encoding
        self.pfb_filename = pfb_filename

    ##############################################

    def print_summary(self):

        message_pattern = '''Font Map Entry %s

 - PS font name %s
 - ps snippet   "%s"
 - effects      %s
 - encoding     %s
 - pfb_filename %s''' 

        message = message_pattern % (
            self.tex_name,
            self.ps_font_name,
            self.ps_snippet,
            self.effects,
            self.encoding,
            self.pfb_filename,
            )


        print_card(message)