Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ideograms #2211

Open
nmgrluser opened this issue Apr 19, 2023 · 0 comments
Open

Problems with ideograms #2211

nmgrluser opened this issue Apr 19, 2023 · 0 comments

Comments

@nmgrluser
Copy link
Contributor

active branch=dev/dr

active analyses=70199-01A,70199-01B,70199-02A,70199-02B,70199-03A,70199-03B,70200-01A,70200-01B,70200-02A,70200-02B,70200-03A,70200-03B,70199-04,70199-05,70199-06,70199-07,70199-08,70199-09,70199-10,70199-11,70199-12,70199-13,70199-14,70199-15,70199-16,70199-17,70199-18,70199-19,70199-20,70200-04,70200-05,70200-06,70200-07,70200-08,70200-09,70200-10,70200-11,70200-12,70200-13,70200-14,70200-15,70200-16,70200-17,70200-18,70200-19,70200-20

description=""

Traceback

Traceback (most recent call last):
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/reportlab/pdfbase/pdfmetrics.py", line 711, in getFont
    return _fonts[fontName]
KeyError: 'helvetica'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/pyface/ui/qt4/action/action_item.py", line 371, in _qt4_on_triggered
    self.controller.perform(action, action_event)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/pyface/tasks/action/task_action_controller.py", line 31, in perform
    return action.perform(event)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/pyface/action/listening_action.py", line 74, in perform
    method()
  File "/Users/argonlab2/.pychron.1/updates/pychron/pipeline/tasks/task.py", line 457, in save_figure_pdf
    save_pdf(ed.component, path=path, options=sfm.pdf_options, view=True)
  File "/Users/argonlab2/.pychron.1/updates/pychron/core/pdf/save_pdf_dialog.py", line 150, in save_pdf
    component, valign=options.valign, halign=options.halign
  File "/Users/argonlab2/.pychron.1/updates/pychron/core/pdf/pdf_graphics_context.py", line 220, in render_component
    component.draw(self, view_bounds=(0, 0, width, height))
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/component.py", line 427, in draw
    self._draw(gc, view_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/component.py", line 779, in _draw
    self._dispatch_draw(layer, gc, view_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/container.py", line 273, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/container.py", line 273, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/container.py", line 273, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/component.py", line 799, in _dispatch_draw
    handler(gc, view_bounds, mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/enable/component.py", line 877, in _draw_overlay
    overlay.overlay(self, gc, view_bounds, mode)
  File "/Users/argonlab2/.pychron.1/updates/pychron/pipeline/plot/overlays/mean_indicator_overlay.py", line 292, in overlay
    o.overlay(other_component, gc, view_bounds=view_bounds, mode=mode)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/chaco/plot_label.py", line 89, in overlay
    self._draw_overlay(gc, view_bounds, mode)
  File "/Users/argonlab2/.pychron.1/updates/pychron/pipeline/plot/overlays/mean_indicator_overlay.py", line 97, in _draw_overlay
    self._label.draw(gc)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/chaco/label.py", line 169, in draw
    gc.set_font(self.font)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/kiva/pdf.py", line 629, in set_font
    self.gc.setFont(face_name, font.size)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/reportlab/pdfgen/canvas.py", line 1691, in setFont
    font = pdfmetrics.getFont(self._fontname)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/reportlab/pdfbase/pdfmetrics.py", line 713, in getFont
    return findFontAndRegister(fontName)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/reportlab/pdfbase/pdfmetrics.py", line 695, in findFontAndRegister
    face = getTypeFace(fontName)
  File "/Users/argonlab2/miniconda2/envs/pychron3/lib/python3.7/site-packages/reportlab/pdfbase/pdfmetrics.py", line 652, in getTypeFace
    return _typefaces[faceName]
KeyError: 'helvetica'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants