Aug-06-2025, 11:26 PM (This post was last modified: Aug-06-2025, 11:26 PM by Pedroski55.)
Hi again! Sorry to be a pest!
In the function
If I don't import csv I get:
I only changed import csv and OUT_DIR
Like I said above though, I get no error running your programme, but the result is bad, and black on transparent background, no colour at all.
I downloaded some emoji svg files from github. For example this one: emoji_u1f3aa.svg It looks like a circus tent.
If I do this:
If I load an output svg which I got from your programme:
But I don't see an egg, I just see a black half egg!
I tried using this FONT_PATH:
Do you have any more tips or advice please?
In the function
def load_symbol_table(path: Path):in your post above:
Quote:line 66: reader = csv.reader(f, delimiter=delimiter)
line 78: reader2 = csv.DictReader(f, delimiter=delimiter)
If I don't import csv I get:
Quote:NameError: name 'csv' is not defined. Did you forget to import 'csv'?
I only changed import csv and OUT_DIR
Like I said above though, I get no error running your programme, but the result is bad, and black on transparent background, no colour at all.
I downloaded some emoji svg files from github. For example this one: emoji_u1f3aa.svg It looks like a circus tent.
If I do this:
symbol_template = "/home/peterr/PVE/emoji2svg2png/emoji_u1f3aa.svg" with open(symbol_template) as t: lines = t.readlines() len(lines) # 62 for line in lines: print(line)The output is 62 lines and complicated. That, I think, is the reason why the output I get is not good.
If I load an output svg which I got from your programme:
symbol_template = "/home/peterr/PVE/emoji2svg2png/svg/emoji_1F95A_U1F95A.svg" with open(symbol_template) as t: lines = t.readlines() len(lines) # 40 for line in lines: print(line)The output looks like this:
Output:<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="256" height="256" viewBox="0 0 256 256" version="1.1" id="svg6" sodipodi:docname="temp_1F95A_U1F95A.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <defs id="defs10" /> <sodipodi:namedview id="namedview8" pagecolor="#ffffff" bordercolor="#000000" borderopacity="0.25" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" /> <style id="style2"> @font-face { font-family: CustomEmojiFont; src: url("Segoe UI Emoji") format("truetype"); } text { font-family: CustomEmojiFont, sans-serif; font-size: 204px; dominant-baseline: hanging; } </style> <text x="5" y="50" id="text4">🥚</text> </svg>Is that what you get?But I don't see an egg, I just see a black half egg!
I tried using this FONT_PATH:
FONT_PATH = '/home/peterr/.local/share/fonts/NotoColorEmoji.ttf'But the result is still bad.
Do you have any more tips or advice please?
