Repository: godotengine/godot
File: scene/resources/font.cpp (C++)

Code before:
					return true;
				} else if (tokens[6] == "size") {
					set_glyph_size(cache_index, sz, glyph_index, p_value);
					return true;
				} else if (tokens[6] == "uv_rect") {
					set_glyph_uv_rect(cache_index, sz, glyph_index, p_value);
					return true;
				} else if (tokens[6] == "texture_idx") {
					set_glyph_texture_idx(cache_index, sz, glyph_index, p_value);
					return true;
				}
			} else if (tokens.size() == 7 && tokens[4] == "kerning_overrides") {
				Vector2i gp = Vector2i(tokens[5].to_int(), tokens[6].to_int());
				set_kerning(cache_index, sz.x, gp, p_value);
				return true;
			}
		}
	}
	return false;
}

bool FontFile::_get(const StringName &p_name, Variant &r_ret) const {
	Vector<String> tokens = p_name.operator String().split("/");
	if (tokens.size() == 2 && tokens[0] == "language_support_override") {
		String lang_code = tokens[1];
		r_ret = get_language_support_override(lang_code);
		return true;
	} else if (tokens.size() == 2 && tokens[0] == "script_support_override") {
		String script_code = tokens[1];
		r_ret = get_script_support_override(script_code);
		return true;
	} else if (tokens.size() >= 3 && tokens[0] == "cache") {
		int cache_index = tokens[1].to_int();
		if (tokens.size() == 3 && tokens[2] == "variation_coordinates") {
			r_ret = get_variation_coordinates(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "embolden") {
			r_ret = get_embolden(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "face_index") {
			r_ret = get_face_index(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "transform") {
			r_ret = get_transform(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "spacing_top") {
			r_ret = get_extra_spacing(cache_index, TextServer::SPACING_TOP);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "spacing_bottom") {
			r_ret = get_extra_spacing(cache_index, TextServer::SPACING_BOTTOM);
			return true;

Review comment (suggestion):
```suggestion
		r_ret = get_language_support_override(tokens[1]);
```

Code after:
					return true;
				} else if (tokens[6] == "size") {
					set_glyph_size(cache_index, sz, glyph_index, p_value);
					return true;
				} else if (tokens[6] == "uv_rect") {
					set_glyph_uv_rect(cache_index, sz, glyph_index, p_value);
					return true;
				} else if (tokens[6] == "texture_idx") {
					set_glyph_texture_idx(cache_index, sz, glyph_index, p_value);
					return true;
				}
			} else if (tokens.size() == 7 && tokens[4] == "kerning_overrides") {
				Vector2i gp = Vector2i(tokens[5].to_int(), tokens[6].to_int());
				set_kerning(cache_index, sz.x, gp, p_value);
				return true;
			}
		}
	}
	return false;
}

bool FontFile::_get(const StringName &p_name, Variant &r_ret) const {
	Vector<String> tokens = p_name.operator String().split("/");
	if (tokens.size() == 2 && tokens[0] == "language_support_override") {
		const String &lang_code = tokens[1];
		r_ret = get_language_support_override(lang_code);
		return true;
	} else if (tokens.size() == 2 && tokens[0] == "script_support_override") {
		const String &script_code = tokens[1];
		r_ret = get_script_support_override(script_code);
		return true;
	} else if (tokens.size() >= 3 && tokens[0] == "cache") {
		int cache_index = tokens[1].to_int();
		if (tokens.size() == 3 && tokens[2] == "variation_coordinates") {
			r_ret = get_variation_coordinates(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "embolden") {
			r_ret = get_embolden(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "face_index") {
			r_ret = get_face_index(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "transform") {
			r_ret = get_transform(cache_index);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "spacing_top") {
			r_ret = get_extra_spacing(cache_index, TextServer::SPACING_TOP);
			return true;
		} else if (tokens.size() == 3 && tokens[2] == "spacing_bottom") {
			r_ret = get_extra_spacing(cache_index, TextServer::SPACING_BOTTOM);
			return true;