Diffrent font size in same syntax problem


I was trying to create my own grammar and theme, and i want to have different font size for some tokens but when i do
.syntax–chapter {
color: yellow;
font-size : 20pt;

.syntax--subchapter {
	color: green ;
	font-size : 25pt; 

I got some troubles with atom

Any idea to fix it?


Atom doesn’t have good support for different font sizes. You might be able to write a package that identifies which lines should be larger and increases the height of the corresponding row number to match, but I haven’t tried it so I’m not completely sure it would work.