Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exporting with .pdf changes the font for graphs

    Hello,
    I have a problem with the fonts Catenerao and CMU Serif installed on my Windows machine & in Sttata (version 18).
    Even though I can see the fonts reflected in my graphs in the state graph window, I can not export the graph with the font (fur exampple from CMU Serif to times newo roman). When I save it, it changes to something else.

    I tried the "graph set window fontface" command, tried re-install the fonts for all-users in my windows, and tried different pdf readars. but, it is not working.

    Is there a person herre who experienceses the same problblem?

    Thank you so much

  • #2
    Interesting. I get the same if I export to jpg and eps, so it's the not the pdf reader.

    From what I've seen, you have to export to something else then print that pdf.

    graph export graph.jpg , as(jpg) fontface("CMU Serif") replace

    Comment


    • #3
      I suggest to check if you have the latest version of Stata 18. In the 4th October update there are two features listed that may affect your case:
      "3. graph export now supports OpenType fonts (.otf) when exporting the current graph to SVG, PDF, PNG, JPEG, EMF, TIF, and GIF.

      4. putpdf now supports OpenType fonts (.otf)."
      see
      Code:
      help whatsnew18
      PS: You may also like to look at https://www.statalist.org/forums/for...xported-to-pdf
      Last edited by Marc Kaulisch; 31 Oct 2023, 01:42.

      Comment

      Working...
      X