Skip to content

Commit 4455016

Browse files
committed
[-] Correção para impressão com texto invertido.
1 parent cd0f8bc commit 4455016

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/OpenAC.Net.EscPos/Interpreter/Resolver/DefaultTextResolver.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ public override byte[] Resolve(TextCommand cmd)
116116
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Sublinhado) && Commandos.ContainsKey(CmdEscPos.LigaSublinhado))
117117
builder.Append(Commandos[CmdEscPos.LigaSublinhado]);
118118

119-
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Invertido) && Commandos.ContainsKey(CmdEscPos.LigaInvertido))
120-
builder.Append(Commandos[CmdEscPos.LigaSublinhado]);
121-
122119
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Italico) && Commandos.ContainsKey(CmdEscPos.LigaItalico))
123120
builder.Append(Commandos[CmdEscPos.LigaItalico]);
124121

125122
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.AlturaDupla) && Commandos.ContainsKey(CmdEscPos.LigaAlturaDupla))
126123
builder.Append(Commandos[CmdEscPos.LigaAlturaDupla]);
124+
125+
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Invertido) && Commandos.ContainsKey(CmdEscPos.LigaInvertido))
126+
builder.Append(Commandos[CmdEscPos.LigaInvertido]);
127127
}
128128

129129
// Adiciona o texto, fazendo o tratamento para quebra de linha
@@ -137,14 +137,14 @@ public override byte[] Resolve(TextCommand cmd)
137137
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Sublinhado) && Commandos.ContainsKey(CmdEscPos.DesligaSublinhado))
138138
builder.Append(Commandos[CmdEscPos.DesligaSublinhado]);
139139

140-
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Invertido) && Commandos.ContainsKey(CmdEscPos.DesligaInvertido))
141-
builder.Append(Commandos[CmdEscPos.LigaSublinhado]);
142-
143140
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Italico) && Commandos.ContainsKey(CmdEscPos.DesligaItalico))
144141
builder.Append(Commandos[CmdEscPos.DesligaItalico]);
145142

146143
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.AlturaDupla) && Commandos.ContainsKey(CmdEscPos.DesligaAlturaDupla))
147144
builder.Append(Commandos[CmdEscPos.DesligaAlturaDupla]);
145+
146+
if (cmd.Estilo.Value.HasFlag(CmdEstiloFonte.Invertido) && Commandos.ContainsKey(CmdEscPos.DesligaInvertido))
147+
builder.Append(Commandos[CmdEscPos.DesligaInvertido]);
148148
}
149149

150150
switch (cmd.Tamanho)

0 commit comments

Comments
 (0)