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

1.1.x - save 1400 bytes of FLASH by using reduced font for some languages #8095

Merged
merged 6 commits into from Oct 25, 2017
Merged

1.1.x - save 1400 bytes of FLASH by using reduced font for some languages #8095

merged 6 commits into from Oct 25, 2017

Conversation

Bob-the-Kuhn
Copy link
Contributor

@Bob-the-Kuhn Bob-the-Kuhn commented Oct 25, 2017

This PR saves about 1400 bytes of FLASH by using a reduced size font for some languages.

This is being done to help the 128K AVR users fit more functions into their controllers.

The reduction in size is done by using only symbols 32-127 out of the original 32-255 for the font dogm_font_data_ISO10646_1.h.

The reduced font can only be used for the following languages:

language_an.h
language_en.h
language_es.h
language_eu.h
language_fr.h
language_gl.h
language_nl.h
language_pl-HD44780.h
language_pt.h
language_pt-br.h

The following languages also use dogm_font_data_ISO10646_1.h but use symbols in the 128-255 range so can not use the reduced font.

language_ca.h
language_cz.h
language_da.h
language_de.h
language_fi.h
language_fr_utf8.h
language_hr.h
language_it.h
language_pl-DOGM.h
language_pt_utf8.h
language_pt-br_utf8.h
language_zh_CN.h
language_zh_TW.h

The files language_pl-DOGM.h and language_pl-HD44780.h were modified so that they could be included/excluded from the reduced font list.

@thinkyhead
Copy link
Member

thinkyhead commented Oct 25, 2017

Tweaking around with the code as I contemplate it. No changes really needed! I'll squash and merge this shortly to conceal my conflation of Portuguese with Polish.

@thinkyhead thinkyhead merged commit 594c075 into MarlinFirmware:bugfix-1.1.x Oct 25, 2017
@Bob-the-Kuhn Bob-the-Kuhn deleted the 1.1.x-reduced-font branch November 10, 2017 15:56
MoellerDi added a commit to MoellerDi/Marlin that referenced this pull request Nov 27, 2017
… into bugfix-1.1.x-HD-CR10

* 'bugfix-1.1.x' of https://github.com/MarlinFirmware/Marlin: (94 commits)
  [1.1.x] Fix M303 thermal protection MarlinFirmware#8103 (MarlinFirmware#8126)
  Implement support for Dual X and Y endstops
  Add Dual Steppers / Endstops to configs
  Cleanup for DIGIPOTS settings
  (1.1.x) serious bug G33
  Add scripts for .travis.yml to append config options
  Revert default BABYSTEP_MULTIPLICATOR to 1
  Added MKS GEN L board (MarlinFirmware#8088)
  Concise SD_REPRINT_LAST_SELECTED_FILE description
  Clean up trailing whitespace
  (1.1.x) auto tune calibration parameters (MarlinFirmware#8031)
  Tweak neopixel self-test
  Add some Polish translations
  Fix FWRETRACT logic, apply common sense
  give this language an unique name
  Initial conflict resolution of SD_REPRINT_LAST_SELECTED_FILE (MarlinFirmware#8104)
  1.1.x - save 1400 bytes of FLASH by using reduced font for some languages (MarlinFirmware#8095)
  More specific M100 description
  Fix spacing, use single instances of similar pins
  Encourage users to re-examine their configs
  ...

# Conflicts:
#	Marlin/Configuration.h
#	Marlin/Configuration_adv.h
mtm88001 pushed a commit to mtm88001/Marlin that referenced this pull request Dec 9, 2017
…ages (MarlinFirmware#8095)

* use reduced sized font for some languages

* Fit Portuguese language files to existing scheme

* Rename language_pl-DOGM.h to language_pl_utf8.h

* Rename language_pl_utf8.h to language_pl-DOGM.h

* Update dogm_font_data_ISO10646_1.h

* Update dogm_font_data_ISO10646_1.h
damicreabox pushed a commit to damicreabox/Marlin that referenced this pull request Sep 14, 2018
…ages (MarlinFirmware#8095)

* use reduced sized font for some languages

* Fit Portuguese language files to existing scheme

* Rename language_pl-DOGM.h to language_pl_utf8.h

* Rename language_pl_utf8.h to language_pl-DOGM.h

* Update dogm_font_data_ISO10646_1.h

* Update dogm_font_data_ISO10646_1.h
kForth pushed a commit to kForth/Marlin that referenced this pull request Jun 22, 2022
…ages (MarlinFirmware#8095)

* use reduced sized font for some languages

* Fit Portuguese language files to existing scheme

* Rename language_pl-DOGM.h to language_pl_utf8.h

* Rename language_pl_utf8.h to language_pl-DOGM.h

* Update dogm_font_data_ISO10646_1.h

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

Successfully merging this pull request may close these issues.

None yet

3 participants