Skip to content

#787 adjust 2024 IntBox sizing and text positioning for >=20 line numbers - #779

Merged
thekingofcity merged 2 commits into
railmapgen:#705-Shanghai-Metro-2024-stylefrom
Unnamed2964:fix/shmetro-2024-20plus-squares
Mar 14, 2026
Merged

#787 adjust 2024 IntBox sizing and text positioning for >=20 line numbers#779
thekingofcity merged 2 commits into
railmapgen:#705-Shanghai-Metro-2024-stylefrom
Unnamed2964:fix/shmetro-2024-20plus-squares

Conversation

@Unnamed2964

@Unnamed2964 Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

…bers

  • Align box width/height ratio with kyuri reference (single: 18.9, double: 23.1, height: 22)
    https://github.com/Unnamed2964/kyuri-shmetro-line-id-block-generator
  • Indoor boxes also aligned (single: 25.8, double: 31.5, height: 30)
  • Add per-range text positioning (letterSpacing, fontSize, transform) for 1x/2x digits
  • Use textAnchor=middle for cross-platform font consistency

…bers

- Align box width/height ratio with kyuri reference (single: 18.9, double: 23.1, height: 22)
- Indoor boxes also aligned (single: 25.8, double: 31.5, height: 30)
- Add per-range text positioning (letterSpacing, fontSize, transform) for 1x/2x digits
- Use textAnchor=middle for cross-platform font consistency
@Unnamed2964

Copy link
Copy Markdown
Contributor Author

example:
rmg wq23 Guilin Road (1)
rmg wq23 Guilin Road

@Unnamed2964

Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

2x(x != 1) is compressed with reference to 《城市轨道交通导向标识系统设计规范》上海市地方标准征求意见稿(2025)
image
Although this new standard changes other ratios.

@Unnamed2964

Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

除了kyuri那边参考的9号线站台门线路图,还有一个可供参考的是去年12月开通2期的18号线站台门和车内线路图(本人拍摄)
IMG_20260309_163155
IMG_20260308_191101
IMG_20260308_191112
IMG_20260308_191956
IMG_20260308_191803

@Unnamed2964 Unnamed2964 closed this Mar 9, 2026
@Unnamed2964

Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

加了蟠祥路•国家会计学院站的2号线站台门和车内线路图似乎使用的是类似于征求意见稿的数字占方块比例
(可见 BV1hsx4z3EuP,在此感谢视频作者 RayQA)
834117730755952
1243017730756112
IMG_20260310_010205

@Unnamed2964 Unnamed2964 reopened this Mar 9, 2026
@Unnamed2964

Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

本pr下生成的18号线线路图(不显示“出站换乘”的修复在 #778
rmg uh76 Jiangpu Park (2)
rmg uh76 Jiangpu Park (3)
RMG_PijYseg9EIEPMxF0aQEZi.json

@Unnamed2964

Unnamed2964 commented Mar 9, 2026

Copy link
Copy Markdown
Contributor Author

在没有Arial字体的设备上fallback到SimHei下的效果:
rmg uh76 Jiangpu Park (4)
rmg uh76 Jiangpu Park (5)

@Unnamed2964 Unnamed2964 changed the title fix: adjust 2024 IntBox sizing and text positioning for >=20 line num… #705 adjust 2024 IntBox sizing and text positioning for >=20 line numbers Mar 9, 2026

@thekingofcity thekingofcity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@thekingofcity thekingofcity linked an issue Mar 14, 2026 that may be closed by this pull request
@thekingofcity thekingofcity changed the title #705 adjust 2024 IntBox sizing and text positioning for >=20 line numbers #787 adjust 2024 IntBox sizing and text positioning for >=20 line numbers Mar 14, 2026
@thekingofcity
thekingofcity merged commit 269fe60 into railmapgen:#705-Shanghai-Metro-2024-style Mar 14, 2026
1 check passed
@thekingofcity

Copy link
Copy Markdown
Member

嗨,感谢您的贡献!您应该能在测试环境看到包含此修改的上海地铁2024新风格了 :)

@Unnamed2964
Unnamed2964 deleted the fix/shmetro-2024-20plus-squares branch March 14, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust 2024 IntBox sizing and text positioning for >=20 line numbers

2 participants