Skip to content

feat(escpos): implemented SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions.#36

Merged
adcondev merged 2 commits intoadcondev:masterfrom
rainxh11:master
Oct 12, 2025
Merged

feat(escpos): implemented SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions.#36
adcondev merged 2 commits intoadcondev:masterfrom
rainxh11:master

Conversation

@rainxh11
Copy link
Copy Markdown
Contributor

@rainxh11 rainxh11 commented Oct 11, 2025

Implemented SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions.

Supports multipliers from 0–7 for both width and height (0 = normal size, 7 = 8×).

Automatically clamps invalid multiplier values to default (0).

Encodes the calculated font size using the ESC/POS GS ! command.

Descripción

Tipo de cambio

  • 🐛 Bug fix
  • ✨ Nueva funcionalidad
  • 📚 Solo documentación
  • 🔧 Configuración
  • ♻️ Refactoring
  • 📦 Dependencias

¿Cómo se ha probado?

  • [] Tests automáticos pasan
  • Probado manualmente
  • N/A (solo docs/config)

Checklist

  • El código sigue las convenciones del proyecto
  • Los tests pasan localmente
  • He actualizado la documentación si era necesario

Notas adicionales

  • tested manually by me in production backend

Before

before

After

after

Ahmed Chakhoum added 2 commits October 11, 2025 18:52
…cpos.SetTextSize()`

Introduced SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions.

Supports multipliers from 0–7 for both width and height (0 = normal size, 7 = 8×).

Automatically clamps invalid multiplier values to default (0).

Encodes the calculated font size using the ESC/POS GS ! command.
@rainxh11 rainxh11 requested a review from adcondev as a code owner October 11, 2025 18:07
@adcondev adcondev self-assigned this Oct 12, 2025
@adcondev adcondev moved this to In review in POS RED2000 Oct 12, 2025
@adcondev adcondev changed the title Implemented SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions. feat(escpos): implemented SetTextSize(widthMultiplier, heightMultiplier int) method to adjust text dimensions. Oct 12, 2025
Copy link
Copy Markdown
Owner

@adcondev adcondev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, ty! i'll add some labels to avoid the linters

@adcondev adcondev merged commit 29c6e4e into adcondev:master Oct 12, 2025
18 of 26 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in POS RED2000 Oct 12, 2025
@adcondev
Copy link
Copy Markdown
Owner

Hey, code is very messy right now, those are like the old commands and i have some branches pending to be merged. Thanks for your time. If you have more ideas, let me know.

As for the emulator you showed me, it will help me a lot, thanks.

@adcondev adcondev added enhancement New feature or request size/XS labels Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size/XS

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants